Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions pandas-stubs/_libs/tslibs/timestamps.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ class Timestamp(datetime):
def __new__(
cls,
ts_input: np.integer | float | str | _date | datetime | np.datetime64 = ...,
# Freq is deprecated but is left in to allow code like Timestamp(2000,1,1)
# Removing it would make the other arguments position only
freq: int | str | BaseOffset | None = ...,
tz: str | _tzinfo | int | None = ...,
unit: str | int | None = ...,
year: int | None = ...,
Expand All @@ -71,9 +68,9 @@ class Timestamp(datetime):
minute: int | None = ...,
second: int | None = ...,
microsecond: int | None = ...,
*,
nanosecond: int | None = ...,
tzinfo: _tzinfo | None = ...,
*,
fold: Literal[0, 1] | None = ...,
) -> Self: ...
# GH 46171
Expand Down Expand Up @@ -119,8 +116,6 @@ class Timestamp(datetime):
def fromordinal(
cls,
ordinal: int,
# freq produces a FutureWarning about being deprecated in a future version
freq: None = ...,
tz: _tzinfo | str | None = ...,
) -> Self: ...
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ class DataFrame(NDFrame, OpsMixin):
| Callable[[DataFrame], DataFrame]
| Callable[[Any], _bool]
),
other=...,
other: Scalar | Series[S1] | DataFrame | Callable | NAType | None = ...,
*,
inplace: _bool = ...,
axis: Axis | None = ...,
Expand Down