Skip to content

Commit 770cf50

Browse files
committed
fix freq param in DataFrame.shift and Series.shift
1 parent 4db2a9d commit 770cf50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
883883
def shift(
884884
self,
885885
periods: int | Sequence[int] = ...,
886-
freq: DateOffset | dt.timedelta | _str | None = ...,
886+
freq: BaseOffset | dt.timedelta | _str | None = ...,
887887
axis: Axis | None = None,
888888
fill_value: Scalar | NAType | None = ...,
889889
) -> Self: ...

pandas-stubs/core/series.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
11441144
def shift(
11451145
self,
11461146
periods: int | Sequence[int] = ...,
1147-
freq: DateOffset | timedelta | _str | None = None,
1147+
freq: BaseOffset | timedelta | _str | None = None,
11481148
axis: Axis = 0,
11491149
fill_value: Scalar | NAType | None = ...,
11501150
) -> Series: ...

0 commit comments

Comments
 (0)