We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shape
dtype
__int__
__float__
1 parent b37e58b commit 9d2bfd2Copy full SHA for 9d2bfd2
‎src/numpy-stubs/@test/static/reject/ma.pyi
@@ -0,0 +1,6 @@
1
+import numpy as np
2
+
3
+m: np.ma.MaskedArray[tuple[int], np.dtype[np.float64]]
4
5
+m.shape = (3, 1) # type: ignore[assignment]
6
+m.dtype = np.bool # type: ignore[assignment] # pyright: ignore[reportAttributeAccessIssue]
‎src/numpy-stubs/ma/core.pyi
@@ -466,12 +466,6 @@ class MaskedArray(np.ndarray[_ShapeT_co, _DTypeT_co]):
466
@override
467
def __ipow__(self, other: Incomplete, /) -> Self: ... # type: ignore[override]
468
469
- #
470
- @override
471
- def __int__(self) -> int: ...
472
473
- def __float__(self) -> float: ...
474
-
475
#
476
477
def __reduce__(self) -> Incomplete: ...
0 commit comments