Skip to content

Commit

Permalink
Improve type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Oct 24, 2023
1 parent eebbc2e commit c376daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c376daf

Please sign in to comment.