-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrequencyDateOffsetsDateOffsetsTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking
Description
For @twoertwein
I was doing some work with frequencies and discovered pd.tseries.offsets.WeekOfMonth
and then see that it is not typed correctly in pandas._libs.tseries.offsets.pyi
. Constructor is:
def __init__(self, n=1, normalize=False, week=0, weekday=0)
Right now, it picks up the constructor for BaseOffset
which is:
def __init__(self, n: int = ..., normalize: bool = ...) -> None: ...
I'm guessing there might be other classes in offsets.pyi
that have issues like this, but I'm not sure.
Metadata
Metadata
Assignees
Labels
FrequencyDateOffsetsDateOffsetsTypingtype annotations, mypy/pyright type checkingtype annotations, mypy/pyright type checking