@@ -190,7 +190,9 @@ __all__ = [
190
190
"zeros_like" ,
191
191
]
192
192
193
+ _ShapeType = TypeVar ("_ShapeType" , bound = tuple [int , ...])
193
194
_ShapeType_co = TypeVar ("_ShapeType_co" , bound = tuple [int , ...], covariant = True )
195
+ _DType = TypeVar ("_DType" , bound = dtype [Any ])
194
196
_DType_co = TypeVar ("_DType_co" , bound = dtype [Any ], covariant = True )
195
197
196
198
MaskType = bool
@@ -347,13 +349,13 @@ class MaskedArray(ndarray[_ShapeType_co, _DType_co]):
347
349
def __getitem__ (self , indx ): ...
348
350
def __setitem__ (self , indx , value ): ...
349
351
@property
350
- def dtype (self ): ...
352
+ def dtype (self ) -> _DType_co : ...
351
353
@dtype .setter
352
- def dtype (self , dtype ) : ...
354
+ def dtype (self : MaskedArray [ Any , _DType ], dtype : _DType , / ) -> None : ...
353
355
@property
354
- def shape (self ): ...
356
+ def shape (self ) -> _ShapeType_co : ...
355
357
@shape .setter
356
- def shape (self , shape ) : ...
358
+ def shape (self : MaskedArray [ _ShapeType , Any ], shape : _ShapeType , / ) -> None : ...
357
359
def __setmask__ (self , mask , copy = ...): ...
358
360
@property
359
361
def mask (self ): ...
@@ -413,8 +415,6 @@ class MaskedArray(ndarray[_ShapeType_co, _DType_co]):
413
415
def __ifloordiv__ (self , other ): ...
414
416
def __itruediv__ (self , other ): ...
415
417
def __ipow__ (self , other ): ...
416
- def __float__ (self ): ...
417
- def __int__ (self ): ...
418
418
@property # type: ignore[misc]
419
419
def imag (self ): ...
420
420
get_imag : Any
0 commit comments