Skip to content

Commit b848726

Browse files
committed
✅ fix failing timedelt64 for __floordiv__ and __truediv__
1 parent 0a89981 commit b848726

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/numpy-stubs/__init__.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5841,13 +5841,13 @@ class timedelta64(
58415841
@overload
58425842
def __mul__(self, x: int | integer | bool_, /) -> Self: ...
58435843
@overload
5844-
def __mul__(self, x: _nt.JustFloat | floating | _nt.Just[inexact], /) -> timedelta64[_TD64ItemT_co | None]: ...
5844+
def __mul__(self, x: _nt.JustFloat | floating, /) -> timedelta64[_TD64ItemT_co | None]: ...
58455845

58465846
#
58475847
@overload
58485848
def __rmul__(self, x: int | integer | bool_, /) -> Self: ...
58495849
@overload
5850-
def __rmul__(self, x: _nt.JustFloat | floating | _nt.Just[inexact], /) -> timedelta64[_TD64ItemT_co | None]: ...
5850+
def __rmul__(self, x: _nt.JustFloat | floating, /) -> timedelta64[_TD64ItemT_co | None]: ...
58515851

58525852
#
58535853
@overload
@@ -5881,7 +5881,7 @@ class timedelta64(
58815881
@overload
58825882
def __truediv__(self, b: _nt.JustInt | integer, /) -> Self: ...
58835883
@overload
5884-
def __truediv__(self, b: _nt.JustFloat | floating | _nt.Just[inexact], /) -> timedelta64[_TD64ItemT_co | None]: ...
5884+
def __truediv__(self, b: _nt.JustFloat | floating, /) -> timedelta64[_TD64ItemT_co | None]: ...
58855885
@overload
58865886
def __truediv__(self: timedelta64[dt.timedelta], b: dt.timedelta, /) -> float: ...
58875887

@@ -5897,7 +5897,7 @@ class timedelta64(
58975897
@overload
58985898
def __floordiv__(self, b: _nt.JustInt | integer, /) -> Self: ...
58995899
@overload
5900-
def __floordiv__(self, b: _nt.JustFloat | floating | _nt.Just[inexact], /) -> timedelta64[_TD64ItemT_co | None]: ...
5900+
def __floordiv__(self, b: _nt.JustFloat | floating, /) -> timedelta64[_TD64ItemT_co | None]: ...
59015901
@overload
59025902
def __floordiv__(self: timedelta64[dt.timedelta], b: dt.timedelta, /) -> int: ...
59035903

0 commit comments

Comments
 (0)