Skip to content

Commit 93ac589

Browse files
committed
Fix mypy typing and add annotation to the test
1 parent c22c01b commit 93ac589

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/arrays/integer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import copy
22
import sys
3-
from typing import Type
3+
from typing import Tuple, Type
44
import warnings
55

66
import numpy as np
@@ -512,8 +512,7 @@ def value_counts(self, dropna=True):
512512

513513
return Series(array, index=index)
514514

515-
#def _values_for_argsort(self) -> np.ndarray:
516-
def _values_for_argsort(self):
515+
def _values_for_argsort(self) -> Tuple[np.ndarray, np.ndarray]:
517516
"""Return values for sorting.
518517
519518
Returns

pandas/tests/extension/base/methods.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def test_argsort_missing(self, data_missing_for_sorting):
4545
self.assert_series_equal(result, expected)
4646

4747
def test_argsort_nan_loc(self, data_multiple_nan):
48+
# GH 21801
4849
result = data_multiple_nan.argsort()
4950
expected = np.array([3, 9, 7, 1, 0, 6, 2, 4, 5, 8])
5051
tm.assert_numpy_array_equal(result, expected)

0 commit comments

Comments
 (0)