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

fix(python): Revert type hint change on expression inputs #12792

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Nov 30, 2023

Closes #12782

Reverts the type hint change in #12709

This change basically meant that type hinting was disabled for anyone that did not have NumPy installed, as np.ndarray is treated as Any.

I am not sure what the best way to go about this is, but I'd rather have some false positives on NumPy inputs (that you can mute by wrapping with lit) than no type hinting at all. We can revisit this at a later point.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels Nov 30, 2023
@stinodego stinodego marked this pull request as ready for review November 30, 2023 09:25
@stinodego stinodego merged commit dc39d7b into main Nov 30, 2023
17 checks passed
@stinodego stinodego deleted the fix-expr-type-hint branch November 30, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve IntoExprColumn Type Alias
2 participants