Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and caneff committed Oct 6, 2023
1 parent 540d5e2 commit a608be6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -5004,44 +5004,44 @@ def reindex( # type: ignore[override]
tolerance=tolerance,
)

@overload
def rename_axis( # type: ignore[override]
@overload # type: ignore[override]
def rename_axis(
self,
mapper: IndexLabel | lib.NoDefault = ...,
*,
index = ...,
index=...,
axis: Axis = ...,
copy: bool = ...,
inplace: Literal[True],
) -> None:
...

@overload
def rename_axis( # type: ignore[override]
def rename_axis(
self,
mapper: IndexLabel | lib.NoDefault = ...,
*,
index = ...,
index=...,
axis: Axis = ...,
copy: bool = ...,
inplace: Literal[False] = ...,
) -> Self:
...

@overload
def rename_axis( # type: ignore[override]
def rename_axis(
self,
mapper: IndexLabel | lib.NoDefault = ...,
*,
index = ...,
index=...,
axis: Axis = ...,
copy: bool = ...,
inplace: bool = ...,
) -> Self | None:
...

@doc(NDFrame.rename_axis)
def rename_axis( # type: ignore[override]
def rename_axis(
self,
mapper: IndexLabel | lib.NoDefault = lib.no_default,
*,
Expand Down

0 comments on commit a608be6

Please sign in to comment.