Skip to content

Commit b672627

Browse files
committed
Add overload for mixed mappings
1 parent 654d505 commit b672627

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas-stubs/core/series.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,7 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
11031103
fill_value: int | _str | dict | None = None,
11041104
sort: _bool = True,
11051105
) -> DataFrame: ...
1106+
@overload
11061107
def map(
11071108
self,
11081109
arg: (
@@ -1113,6 +1114,12 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
11131114
na_action: Literal["ignore"] | None = None,
11141115
) -> Series[S2]: ...
11151116
@overload
1117+
def map(
1118+
self,
1119+
arg: Callable[[Any], object] | Mapping[Any, object] | Series[Any],
1120+
na_action: Literal["ignore"] | None = None,
1121+
) -> Series: ...
1122+
@overload
11161123
def aggregate(
11171124
self: Series[int],
11181125
func: Literal["mean"],

0 commit comments

Comments
 (0)