@@ -815,7 +815,7 @@ class dtype(Generic[_DTypeScalar_co]):
815
815
metadata : dict [builtins .str , Any ] = ...,
816
816
) -> dtype [object_ ]: ...
817
817
818
- def __class_getitem__ (self , item : Any ) -> GenericAlias : ...
818
+ def __class_getitem__ (cls , item : Any , / ) -> GenericAlias : ...
819
819
820
820
@overload
821
821
def __getitem__ (self : dtype [void ], key : list [builtins .str ], / ) -> dtype [void ]: ...
@@ -1466,7 +1466,7 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1466
1466
if sys .version_info >= (3 , 12 ):
1467
1467
def __buffer__ (self , flags : int , / ) -> memoryview : ...
1468
1468
1469
- def __class_getitem__ (self , item : Any ) -> GenericAlias : ...
1469
+ def __class_getitem__ (cls , item : Any , / ) -> GenericAlias : ...
1470
1470
1471
1471
@overload
1472
1472
def __array__ (
@@ -2767,7 +2767,7 @@ class number(generic, Generic[_NBit1]): # type: ignore
2767
2767
def real (self : _ArraySelf ) -> _ArraySelf : ...
2768
2768
@property
2769
2769
def imag (self : _ArraySelf ) -> _ArraySelf : ...
2770
- def __class_getitem__ (self , item : Any ) -> GenericAlias : ...
2770
+ def __class_getitem__ (cls , item : Any , / ) -> GenericAlias : ...
2771
2771
def __int__ (self ) -> int : ...
2772
2772
def __float__ (self ) -> float : ...
2773
2773
def __complex__ (self ) -> complex : ...
0 commit comments