Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade compatibility with polars 1.* #17

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

ctdunc
Copy link
Collaborator

@ctdunc ctdunc commented Jul 22, 2024

This commit brings polars_istr syntax up to speed with new syntax for polars_ds and pl 1.1.0

@ctdunc ctdunc requested a review from abstractqqq July 22, 2024 18:19
@ctdunc ctdunc self-assigned this Jul 22, 2024
@abstractqqq
Copy link
Owner

abstractqqq commented Jul 22, 2024

I believe A|B won't work with Python 3.8. We can use Union instead.

Idk for how long we want to support Python 3.8, but Polars is currently supporting it still. So maybe we use that syntax?

I know there is a workaround, but I am not sure how to do that.

@abstractqqq
Copy link
Owner

oh wait.. I see, the following line makes the | operator work.

from __future__ import annotations

@abstractqqq abstractqqq merged commit 2403f3e into abstractqqq:main Jul 22, 2024
9 checks passed
@ctdunc ctdunc deleted the chore/1.1_release branch July 22, 2024 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants