Skip to content

Commit

Permalink
add missing type hints in datetimeindex shallow copy
Browse files Browse the repository at this point in the history
  • Loading branch information
annika-rudolph committed Apr 25, 2024
1 parent 18eb7fb commit 30a69e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/indexes/datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,9 @@ def take(
@doc(Index._shallow_copy)
def _shallow_copy( # type: ignore[override]
self,
values,
values: np.ndarray,
name: Hashable = no_default,
level_codes=no_default,
level_codes: np.ndarray = no_default,
) -> Self:
name = self._name if name is no_default else name
result = self._simple_new(values, name=name, refs=self._references)
Expand Down

0 comments on commit 30a69e1

Please sign in to comment.