Skip to content

Commit 8887412

Browse files
committed
🐓 @overload + @override crash stubtest (python/mypy#18814)
1 parent 2ea5e3e commit 8887412

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ā€Žsrc/numpy-stubs/_core/defchararray.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,11 @@ class chararray(np.ndarray[_ShapeT_co, _DTypeT_co]):
200200
def __radd__(self: _BytesArray, lhs: _nt.ToBytes_nd, /) -> _BytesArray: ... # pyright: ignore[reportIncompatibleMethodOverride]
201201

202202
#
203-
@override # type: ignore[override]
204-
@overload
203+
@overload # type: ignore[override]
205204
def __mul__(self, rhs: _nt.ToInteger_0d, /) -> Self: ...
206205
@overload
207206
def __mul__(self, rhs: _nt.ToInteger_nd, /) -> chararray[_nt.Shape, _DTypeT_co]: ... # pyright: ignore[reportIncompatibleMethodOverride]
208-
@override # type: ignore[override]
209-
@overload
207+
@overload # type: ignore[override]
210208
def __rmul__(self, lhs: int, /) -> Self: ...
211209
@overload
212210
def __rmul__(self, lhs: _nt.ToInteger_nd, /) -> chararray[_nt.Shape, _DTypeT_co]: ... # pyright: ignore[reportIncompatibleMethodOverride]

0 commit comments

Comments
Ā (0)