Skip to content

Commit c2e2cb3

Browse files
committed
CLN: ignore typing check in core/generic.py pandas-dev#8283
1 parent f6ca614 commit c2e2cb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/generic.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4461,7 +4461,7 @@ def sort_index(
44614461
target = target._sort_levels_monotonic()
44624462

44634463
indexer = lexsort_indexer(
4464-
target._get_codes_for_sorting(),
4464+
target._get_codes_for_sorting(), # type: ignore[attr-defined]
44654465
orders=ascending,
44664466
na_position=na_position,
44674467
)
@@ -4501,7 +4501,9 @@ def sort_index(
45014501
new_index = new_index._sort_levels_monotonic()
45024502

45034503
new_values = self._values.take(indexer)
4504-
result = self._constructor(new_values, index=new_index)
4504+
result = self._constructor(
4505+
new_values, index=new_index # type: ignore[call-arg]
4506+
)
45054507

45064508
if ignore_index:
45074509
result.index = ibase.default_index(len(result))

0 commit comments

Comments
 (0)