Skip to content

Commit

Permalink
fix for older python with list subscript
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Irv committed Aug 2, 2023
1 parent 5a724bf commit 375fe82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

SupportsRichComparison: TypeAlias = Any
else:
from _typeshed import SupportsRichComparison
pass
from pandas.core.indexes.base import (
_ComplexIndexType,
_FloatIndexType,
Expand Down Expand Up @@ -731,7 +731,7 @@ def test_sorted_and_list() -> None:
check(
assert_type(
sorted(i1),
list["SupportsRichComparison"],
"list[SupportsRichComparison]",
),
list,
)
Expand Down

0 comments on commit 375fe82

Please sign in to comment.