Skip to content

Commit e752157

Browse files
authored
Don't remove the correct type
1 parent f25efba commit e752157

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas-stubs/_libs/tslibs/offsets.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ class BaseOffset:
5959
def __radd__(self, other: _DatetimeT) -> _DatetimeT: ...
6060
@overload
6161
def __radd__(self, other: _TimedeltaT) -> _TimedeltaT: ...
62+
def __sub__(self, other: BaseOffset) -> Self: ...
63+
@overload
6264
def __rsub__(self, other: npt.NDArray[np.object_]) -> npt.NDArray[np.object_]: ...
6365
@overload
6466
def __rsub__(self, other: date) -> Timestamp: ...

0 commit comments

Comments
 (0)