Skip to content

Commit bd3a3a1

Browse files
committed
mypy fixup
1 parent 22cca38 commit bd3a3a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8519,11 +8519,7 @@ def ranker(data):
85198519
pct=pct,
85208520
)
85218521

8522-
# error: Argument 1 to "NDFrame" has incompatible type "ndarray"; expected
8523-
# "Union[ArrayManager, BlockManager]"
8524-
ranks_obj = self._constructor(
8525-
ranks, **data._construct_axes_dict() # type: ignore[arg-type]
8526-
)
8522+
ranks_obj = self._constructor(ranks, **data._construct_axes_dict())
85278523
return ranks_obj.__finalize__(self, method="rank")
85288524

85298525
# if numeric_only is None, and we can't get anything, we try with

0 commit comments

Comments
 (0)