Skip to content

Commit 92a4c85

Browse files
committed
mypy fixup
1 parent 4f99269 commit 92a4c85

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pandas/_libs/tslibs/offsets.pyi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ from datetime import (
33
timedelta,
44
)
55
from typing import (
6-
TYPE_CHECKING,
76
Any,
87
Collection,
98
Literal,
@@ -17,8 +16,6 @@ from pandas._typing import npt
1716

1817
from .timedeltas import Timedelta
1918

20-
if TYPE_CHECKING:
21-
from pandas.core.indexes.datetimes import DatetimeIndex
2219
_BaseOffsetT = TypeVar("_BaseOffsetT", bound=BaseOffset)
2320
_DatetimeT = TypeVar("_DatetimeT", bound=datetime)
2421
_TimedeltaT = TypeVar("_TimedeltaT", bound=timedelta)
@@ -63,7 +60,6 @@ class BaseOffset:
6360
def __rsub__(self, other: _DatetimeT) -> _DatetimeT: ...
6461
@overload
6562
def __rsub__(self, other: _TimedeltaT) -> _TimedeltaT: ...
66-
def __call__(self, other): ...
6763
@overload
6864
def __mul__(self, other: np.ndarray) -> np.ndarray: ...
6965
@overload
@@ -80,7 +76,6 @@ class BaseOffset:
8076
def rule_code(self) -> str: ...
8177
@property
8278
def freqstr(self) -> str: ...
83-
def apply_index(self, dtindex: DatetimeIndex) -> DatetimeIndex: ...
8479
def _apply(self, other): ...
8580
def _apply_array(self, dtarr) -> None: ...
8681
def rollback(self, dt: datetime) -> datetime: ...
@@ -90,8 +85,6 @@ class BaseOffset:
9085
def __getstate__(self): ...
9186
@property
9287
def nanos(self) -> int: ...
93-
def onOffset(self, dt: datetime) -> bool: ...
94-
def isAnchored(self) -> bool: ...
9588
def is_anchored(self) -> bool: ...
9689

9790
def _get_offset(name: str) -> BaseOffset: ...

0 commit comments

Comments
 (0)