Skip to content
Closed
Changes from all 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
2 changes: 2 additions & 0 deletions pandas/_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ def __reversed__(self) -> Iterator[_T_co]: ...
)

# For functions like rename that convert one label to another
# For example, you can pass a dict like {'old_name' : 'new_name'}
# or a function like str.lower
Renamer: TypeAlias = Mapping[Any, Hashable] | Callable[[Any], Hashable]

# to maintain type information across generic functions and parametrization
Expand Down
Loading