Skip to content

Commit 83dd9c5

Browse files
committed
add some missing freq annotations#
1 parent 8e2b00e commit 83dd9c5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,14 +1684,14 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
16841684
) -> Self: ...
16851685
def to_timestamp(
16861686
self,
1687-
freq=...,
1687+
freq: Frequency | None = None,
16881688
how: ToTimestampHow = ...,
16891689
axis: Axis = 0,
16901690
copy: _bool = True,
16911691
) -> Self: ...
16921692
def to_period(
16931693
self,
1694-
freq: _str | None = None,
1694+
freq: Frequency | None = None,
16951695
axis: Axis = 0,
16961696
copy: _bool = True,
16971697
) -> Self: ...

pandas-stubs/core/groupby/groupby.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class GroupBy(BaseGroupBy[NDFrameT]):
319319
periods: int = ...,
320320
fill_method: Literal["bfill", "ffill"] | None | _NoDefaultDoNotUse = ...,
321321
limit: int | None | _NoDefaultDoNotUse = ...,
322-
freq=...,
322+
freq: Frequency | None = None,
323323
axis: Axis | _NoDefaultDoNotUse = ...,
324324
) -> NDFrameT: ...
325325
@final

pandas-stubs/core/series.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ class Series(IndexOpsMixin[S1], NDFrame):
12371237
) -> Series[S1]: ...
12381238
def to_timestamp(
12391239
self,
1240-
freq=...,
1240+
freq: Frequency | None = None,
12411241
how: ToTimestampHow = "start",
12421242
copy: _bool = True,
12431243
) -> Series[S1]: ...

0 commit comments

Comments
 (0)