Skip to content

Commit

Permalink
add Hashable type to __get_item__ pandas-dev#592
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Mar 29, 2023
1 parent fbc5f20 commit 31de050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ class DataFrame(NDFrame, OpsMixin):
def T(self) -> DataFrame: ...
def __getattr__(self, name: str) -> Series: ...
@overload
def __getitem__(self, idx: Scalar | tuple[Hashable, ...]) -> Series: ...
def __getitem__(self, idx: Scalar | Hashable | tuple[Hashable, ...]) -> Series: ...
@overload
def __getitem__(self, rows: slice) -> DataFrame: ...
@overload
Expand Down

0 comments on commit 31de050

Please sign in to comment.