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 stubtest errors in numpy._globals #249

Merged
merged 1 commit into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 0 additions & 3 deletions .mypyignore-todo
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ numpy(\..+)?\.floating.as_integer_ratio
numpy(\..+)?\.complexfloating.__hash__
numpy(\..+)?\.complexfloating.__complex__

numpy._globals._CopyMode.IF_NEEDED
numpy._globals._CopyMode.__bool__

numpy.compat
numpy.compat.py3k

Expand Down
6 changes: 4 additions & 2 deletions src/numpy-stubs/_globals.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ from typing import Final, final
@final
class _CopyMode(enum.Enum):
ALWAYS = True
IF_NEEDED = False
NEVER = 2
NEVER = False
IF_NEEDED = 2

def __bool__(self, /) -> bool: ...

@final
class _NoValueType: ...
Expand Down