Skip to content

Commit 0a477a5

Browse files
authored
🏷️ fix stubtest errors in numpy._globals (#249)
1 parent 8a80706 commit 0a477a5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.mypyignore-todo

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ numpy(\..+)?\.floating.as_integer_ratio
88
numpy(\..+)?\.complexfloating.__hash__
99
numpy(\..+)?\.complexfloating.__complex__
1010

11-
numpy._globals._CopyMode.IF_NEEDED
12-
numpy._globals._CopyMode.__bool__
13-
1411
numpy.compat
1512
numpy.compat.py3k
1613

src/numpy-stubs/_globals.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ from typing import Final, final
66
@final
77
class _CopyMode(enum.Enum):
88
ALWAYS = True
9-
IF_NEEDED = False
10-
NEVER = 2
9+
NEVER = False
10+
IF_NEEDED = 2
11+
12+
def __bool__(self, /) -> bool: ...
1113

1214
@final
1315
class _NoValueType: ...

0 commit comments

Comments
 (0)