Skip to content

Commit 0e4c94a

Browse files
committed
make dtype and shape setters positional-only, remove unnecessary __int__ and __float__
1 parent e9606c8 commit 0e4c94a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

numpy/ma/core.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ class MaskedArray(ndarray[_ShapeType_co, _DType_co]):
351351
@property
352352
def dtype(self) -> _DType_co: ...
353353
@dtype.setter
354-
def dtype(self: MaskedArray[_ShapeType_co, _DType], dtype: _DType) -> None: ...
354+
def dtype(self: MaskedArray[_ShapeType_co, _DType], dtype: _DType, /,) -> None: ...
355355
@property
356356
def shape(self) -> _ShapeType_co: ...
357357
@shape.setter
358-
def shape(self: MaskedArray[_ShapeType, _DType_co], shape: _ShapeType) -> None: ...
358+
def shape(self: MaskedArray[_ShapeType, _DType_co], shape: _ShapeType, /,) -> None: ...
359359
def __setmask__(self, mask, copy=...): ...
360360
@property
361361
def mask(self): ...
@@ -415,8 +415,6 @@ class MaskedArray(ndarray[_ShapeType_co, _DType_co]):
415415
def __ifloordiv__(self, other): ...
416416
def __itruediv__(self, other): ...
417417
def __ipow__(self, other): ...
418-
def __float__(self) -> float: ...
419-
def __int__(self) -> int: ...
420418
@property # type: ignore[misc]
421419
def imag(self): ...
422420
get_imag: Any

0 commit comments

Comments
 (0)