Skip to content

Commit 51c1706

Browse files
authored
🏷️ fix stubtest error in numpy.typing (#260)
1 parent 537b489 commit 51c1706

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
from typing import final
2+
3+
@final
14
class NBitBase: ...
2-
class _128Bit(NBitBase): ... # undocumented
3-
class _96Bit(_128Bit): ... # undocumented
4-
class _64Bit(_96Bit): ... # undocumented
5-
class _32Bit(_64Bit): ... # undocumented
6-
class _16Bit(_32Bit): ... # undocumented
7-
class _8Bit(_16Bit): ... # undocumented
5+
6+
class _128Bit(NBitBase): ... # type: ignore[misc] # pyright: ignore[reportGeneralTypeIssues]
7+
class _96Bit(_128Bit): ... # type: ignore[misc]
8+
class _64Bit(_96Bit): ... # type: ignore[misc]
9+
class _32Bit(_64Bit): ... # type: ignore[misc]
10+
class _16Bit(_32Bit): ... # type: ignore[misc]
11+
class _8Bit(_16Bit): ... # type: ignore[misc]

tool/.mypyignore-todo

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

11-
numpy.typing.NBitBase
12-
1311
numpy.compat
1412
numpy.compat.py3k
1513

0 commit comments

Comments
 (0)