8000 Add stubs for `operator.is_none` and `operator.is_not_none` by ZeroIntensity · Pull Request #12535 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

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

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

Merged
merged 5 commits into from
Aug 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove useless generic.
  • Loading branch information
ZeroIntensity committed Aug 17, 2024
commit a166f2d184db66113091ce3e724f7f320e56848f
2 changes: 1 addition & 1 deletion stdlib/_operator.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,5 @@ if sys.version_info >= (3, 11):
def _compare_digest(a: AnyStr, b: AnyStr, /) -> bool: ...

if sys.version_info >= (3, 14):
def is_none(a: _T | None, /) -> TypeIs[None]: ...
def is_none(a: Any | None, /) -> TypeIs[None]: ...
def is_not_none(a: _T | None, /) -> TypeIs[_T]: ...
Loading
0