From c376dafc13b24923c25213312a669952569623a5 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Tue, 24 Oct 2023 22:53:50 +0200 Subject: [PATCH] Improve type hint --- py-polars/polars/dataframe/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 34506376f378..4255b372c9af 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -175,9 +175,9 @@ # MultiColSelector indexes into the horizontal axis # NOTE: wrapping these as strings is necessary for Python <3.10 - MultiRowSelector: TypeAlias = Union[slice, range, list[int], "Series"] + MultiRowSelector: TypeAlias = Union[slice, range, "list[int]", "Series"] MultiColSelector: TypeAlias = Union[ - slice, range, list[int], list[str], list[bool], "Series" + slice, range, "list[int]", "list[str]", "list[bool]", "Series" ] T = TypeVar("T")