@@ -1563,12 +1563,6 @@ class _ArrayOrScalarCommon:
1563
1563
keepdims : bool = ...,
1564
1564
) -> _NdArraySubClass : ...
1565
1565
1566
- def repeat (
1567
- self ,
1568
- repeats : _ArrayLikeInt_co ,
1569
- axis : Optional [SupportsIndex ] = ...,
1570
- ) -> ndarray : ...
1571
-
1572
1566
@overload
1573
1567
def round (
1574
1568
self : _ArraySelf ,
@@ -1829,6 +1823,12 @@ class ndarray(_ArrayOrScalarCommon, Generic[_ShapeType, _DType_co]):
1829
1823
mode : _ModeKind = ...,
1830
1824
) -> _NdArraySubClass : ...
1831
1825
1826
+ def repeat (
1827
+ self ,
1828
+ repeats : _ArrayLikeInt_co ,
1829
+ axis : Optional [SupportsIndex ] = ...,
1830
+ ) -> ndarray [Any , _DType_co ]: ...
1831
+
1832
1832
# Many of these special methods are irrelevant currently, since protocols
1833
1833
# aren't supported yet. That said, I'm adding them for completeness.
1834
1834
# https://docs.python.org/3/reference/datamodel.html
@@ -2821,6 +2821,12 @@ class generic(_ArrayOrScalarCommon):
2821
2821
mode : _ModeKind = ...,
2822
2822
) -> _NdArraySubClass : ...
2823
2823
2824
+ def repeat (
2825
+ self : _ScalarType ,
2826
+ repeats : _ArrayLikeInt_co ,
2827
+ axis : Optional [SupportsIndex ] = ...,
2828
+ ) -> ndarray [Any , dtype [_ScalarType ]]: ...
2829
+
2824
2830
def squeeze (
2825
2831
self : _ScalarType , axis : Union [Literal [0 ], Tuple [()]] = ...
2826
2832
) -> _ScalarType : ...
0 commit comments