Skip to content
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