File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 5
5
TYPE_CHECKING ,
6
6
Hashable ,
7
7
Sequence ,
8
+ cast ,
8
9
final ,
9
10
)
10
11
import warnings
@@ -940,9 +941,7 @@ def _getitem_lowerdim(self, tup: tuple):
940
941
with suppress (IndexingError ):
941
942
# error "_LocationIndexer" has no attribute
942
943
# "_handle_lowerdim_multi_index_axis0"
943
- return self ._handle_lowerdim_multi_index_axis0 ( # type: ignore[attr-defined]
944
- tup
945
- )
944
+ return cast (_LocIndexer , self )._handle_lowerdim_multi_index_axis0 (tup )
946
945
947
946
tup = self ._validate_key_length (tup )
948
947
@@ -1000,7 +999,7 @@ def _getitem_nested_tuple(self, tup: tuple):
1000
999
with suppress (IndexingError ):
1001
1000
# error "_LocationIndexer" has no attribute
1002
1001
# "_handle_lowerdim_multi_index_axis0"
1003
- return self ._handle_lowerdim_multi_index_axis0 ( # type: ignore[attr-defined]
1002
+ return cast ( _LocIndexer , self ) ._handle_lowerdim_multi_index_axis0 (
1004
1003
tup
1005
1004
)
1006
1005
elif isinstance (self .obj , ABCSeries ) and any (
You can’t perform that action at this time.
0 commit comments