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

depr(python): Deprecate DataType method is_not #12458

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

stinodego
Copy link
Contributor

@stinodego stinodego commented Nov 14, 2023

This method does not offer anything that DataType.is_ does not already offer us. We don't offer is_not_integer, is_not_nested etc. either, so I think we're better off without this method. It's not like this is used so commonly that the method is a must-have.

@alexander-beedie I think you introduced this one - what are your thoughts on this?

@github-actions github-actions bot added deprecation Add a deprecation warning to outdated functionality python Related to Python Polars labels Nov 14, 2023
@stinodego stinodego marked this pull request as ready for review November 14, 2023 19:17
@alexander-beedie
Copy link
Collaborator

alexander-beedie commented Nov 14, 2023

It made more sense when we had very few integrated equality checks, as it was explicit/clean - now that we have a whole host of such checks I agree wholeheartedly that we should deprecate it and rely on standard use of "not" for everything. More consistent, no special-casing 👍

@stinodego
Copy link
Contributor Author

All right, then this is going in!

@stinodego stinodego merged commit 23c367b into main Nov 14, 2023
14 checks passed
@stinodego stinodego deleted the depr-dtype-is-not branch November 14, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deprecation Add a deprecation warning to outdated functionality python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants