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

Add stubs for operator.is_none and operator.is_not_none #12535

Merged
merged 5 commits into from
Aug 17, 2024

Conversation

ZeroIntensity
Copy link
Member

New in 3.14 (see here).

This comment has been minimized.

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I tried this in mypy playground, and it works. Just one nit.

stdlib/_operator.pyi Outdated Show resolved Hide resolved
@ZeroIntensity
Copy link
Member Author

Added it, thanks!

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@Akuli Akuli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Akuli Akuli merged commit eb8e9dd into python:main Aug 17, 2024
63 checks passed
@ZeroIntensity ZeroIntensity deleted the operator-is-none branch August 17, 2024 21:10
max-muoto pushed a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
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