@@ -91,14 +91,14 @@ __all__ = [
91
91
92
92
_ShapeT_co = TypeVar ("_ShapeT_co" , bound = tuple [int , ...], covariant = True )
93
93
_SCT = TypeVar ("_SCT" , bound = np .character )
94
- _CharDType_co = TypeVar ("_CharDType_co " , bound = dtype [np .character ], covariant = True )
94
+ _CharDTypeT_co = TypeVar ("_CharDTypeT_co " , bound = dtype [np .character ], covariant = True )
95
95
_CharArray : TypeAlias = chararray [tuple [int , ...], dtype [_SCT ]]
96
96
97
97
_StringDTypeArray : TypeAlias = np .ndarray [_Shape , np .dtypes .StringDType ]
98
98
_StringDTypeSupportsArray : TypeAlias = _SupportsArray [np .dtypes .StringDType ]
99
99
_StringDTypeOrUnicodeArray : TypeAlias = np .ndarray [_Shape , np .dtype [np .str_ ]] | np .ndarray [_Shape , np .dtypes .StringDType ]
100
100
101
- class chararray (ndarray [_ShapeT_co , _CharDType_co ]):
101
+ class chararray (ndarray [_ShapeT_co , _CharDTypeT_co ]):
102
102
@overload
103
103
def __new__ (
104
104
subtype ,
@@ -123,9 +123,9 @@ class chararray(ndarray[_ShapeT_co, _CharDType_co]):
123
123
) -> chararray [_Shape , dtype [str_ ]]: ...
124
124
125
125
def __array_finalize__ (self , obj : object ) -> None : ...
126
- def __mul__ (self , other : i_co ) -> chararray [_Shape , _CharDType_co ]: ...
127
- def __rmul__ (self , other : i_co ) -> chararray [_Shape , _CharDType_co ]: ...
128
- def __mod__ (self , i : Any ) -> chararray [_Shape , _CharDType_co ]: ...
126
+ def __mul__ (self , other : i_co ) -> chararray [_Shape , _CharDTypeT_co ]: ...
127
+ def __rmul__ (self , other : i_co ) -> chararray [_Shape , _CharDTypeT_co ]: ...
128
+ def __mod__ (self , i : Any ) -> chararray [_Shape , _CharDTypeT_co ]: ...
129
129
130
130
@overload
131
131
def __eq__ (
@@ -273,7 +273,7 @@ class chararray(ndarray[_ShapeT_co, _CharDType_co]):
273
273
def expandtabs (
274
274
self ,
275
275
tabsize : i_co = ...,
276
- ) -> chararray [_Shape , _CharDType_co ]: ...
276
+ ) -> chararray [_Shape , _CharDTypeT_co ]: ...
277
277
278
278
@overload
279
279
def find (
@@ -498,12 +498,12 @@ class chararray(ndarray[_ShapeT_co, _CharDType_co]):
498
498
deletechars : None | S_co = ...,
499
499
) -> _CharArray [bytes_ ]: ...
500
500
501
- def zfill (self , width : i_co ) -> chararray [_Shape , _CharDType_co ]: ...
502
- def capitalize (self ) -> chararray [_ShapeT_co , _CharDType_co ]: ...
503
- def title (self ) -> chararray [_ShapeT_co , _CharDType_co ]: ...
504
- def swapcase (self ) -> chararray [_ShapeT_co , _CharDType_co ]: ...
505
- def lower (self ) -> chararray [_ShapeT_co , _CharDType_co ]: ...
506
- def upper (self ) -> chararray [_ShapeT_co , _CharDType_co ]: ...
501
+ def zfill (self , width : i_co ) -> chararray [_Shape , _CharDTypeT_co ]: ...
502
+ def capitalize (self ) -> chararray [_ShapeT_co , _CharDTypeT_co ]: ...
503
+ def title (self ) -> chararray [_ShapeT_co , _CharDTypeT_co ]: ...
504
+ def swapcase (self ) -> chararray [_ShapeT_co , _CharDTypeT_co ]: ...
505
+ def lower (self ) -> chararray [_ShapeT_co , _CharDTypeT_co ]: ...
506
+ def upper (self ) -> chararray [_ShapeT_co , _CharDTypeT_co ]: ...
507
507
def isalnum (self ) -> ndarray [_ShapeT_co , dtype [np .bool ]]: ...
508
508
def isalpha (self ) -> ndarray [_ShapeT_co , dtype [np .bool ]]: ...
509
509
def isdigit (self ) -> ndarray [_ShapeT_co , dtype [np .bool ]]: ...
0 commit comments