From 31de050709e5144535fa319e00f519bce3c2890f Mon Sep 17 00:00:00 2001 From: Anil Tuncel Date: Wed, 29 Mar 2023 09:42:24 +0200 Subject: [PATCH] add Hashable type to __get_item__ #592 --- pandas-stubs/core/frame.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas-stubs/core/frame.pyi b/pandas-stubs/core/frame.pyi index f8913c5cc..a020efae0 100644 --- a/pandas-stubs/core/frame.pyi +++ b/pandas-stubs/core/frame.pyi @@ -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