@@ -457,8 +457,8 @@ class MaskedArray(ndarray[_ShapeT_co, _DTypeT_co]):
457
457
def reshape (self , * s , ** kwargs ): ...
458
458
def resize (self , newshape , refcheck = ..., order = ...): ...
459
459
def put (self , indices , values , mode = ...): ...
460
- def ids (self ): ...
461
- def iscontiguous (self ): ...
460
+ def ids (self ) -> tuple [ int , int ] : ...
461
+ def iscontiguous (self ) -> bool : ...
462
462
def all (self , axis = ..., out = ..., keepdims = ...): ...
463
463
def any (self , axis = ..., out = ..., keepdims = ...): ...
464
464
def nonzero (self ): ...
@@ -804,7 +804,7 @@ def array(
804
804
subok = ...,
805
805
ndmin = ...,
806
806
): ...
807
- def is_masked (x ) : ...
807
+ def is_masked (x : object ) -> bool : ...
808
808
809
809
class _extrema_operation (_MaskedUFunc ):
810
810
compare : Any
@@ -1113,9 +1113,9 @@ def putmask(a, mask, values): ...
1113
1113
def transpose (a , axes = ...): ...
1114
1114
def reshape (a , new_shape , order = ...): ...
1115
1115
def resize (x , new_shape ): ...
1116
- def ndim (obj ) : ...
1116
+ def ndim (obj : ArrayLike ) -> int : ...
1117
1117
def shape (obj ): ...
1118
- def size (obj , axis = ...) : ...
1118
+ def size (obj : ArrayLike , axis : SupportsIndex | None = None ) -> int : ...
1119
1119
def diff (a , / , n = ..., axis = ..., prepend = ..., append = ...): ...
1120
1120
def where (condition , x = ..., y = ...): ...
1121
1121
def choose (indices , choices , out = ..., mode = ...): ...
0 commit comments