-
-
Notifications
You must be signed in to change notification settings - Fork 141
remove several internal-only methods from offsets.pyi #1163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
c7b6cbb
to
ca32d1f
Compare
class BusinessMixin(SingleConstructorOffset): | ||
def __init__( | ||
self, n: int = ..., normalize: bool = ..., offset: timedelta = ... | ||
) -> None: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was only subclassed by BusinessHour
and _CustomBusinessMonth
, but they both override its only method (__init__
). Given that it's not even public, OK to just remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
def roll_qtrday( | ||
other: datetime, n: int, month: int, day_opt: str, modby: int | ||
) -> int: ... | ||
def shift_months( | ||
dtindex: npt.NDArray[np.int64], months: int, day_opt: str | None = ... | ||
) -> npt.NDArray[np.int64]: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private
@@ -96,9 +92,6 @@ class BaseOffset: | |||
def __getstate__(self): ... | |||
@property | |||
def nanos(self) -> int: ... | |||
def onOffset(self, dt: datetime) -> bool: ... | |||
def isAnchored(self) -> bool: ... | |||
def is_anchored(self) -> bool: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deprecated
def onOffset(self, dt: datetime) -> bool: ... | ||
def isAnchored(self) -> bool: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove quite a while ago
@@ -26,10 +26,6 @@ from pandas.tseries.holiday import AbstractHolidayCalendar | |||
_DatetimeT = TypeVar("_DatetimeT", bound=datetime) | |||
_TimedeltaT = TypeVar("_TimedeltaT", bound=timedelta) | |||
|
|||
prefix_mapping: dict[str, type] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private
ca32d1f
to
fb18255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all looks fine to me. Feel free to move to non-draft status
assert_type()
to assert the type of any return value