Skip to content

Commit d4a033f

Browse files
Apply suggestions from code review
Co-authored-by: Yi-Fan Wang <cmp0xff@users.noreply.github.com>
1 parent 7424d2e commit d4a033f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/indexes/test_indexes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,9 +1625,9 @@ def test_index_sort_values() -> None:
16251625

16261626
def test_index_get_indexer_non_unique() -> None:
16271627
idx = pd.Index([1, 3])
1628-
res = idx.get_indexer_non_unique(pd.Index([3]))
1629-
check(assert_type(res[0], np_1darray_intp), np_1darray_intp)
1630-
check(assert_type(res[1], np_1darray_intp), np_1darray_intp)
1628+
indexer, missing = idx.get_indexer_non_unique(pd.Index([3]))
1629+
check(assert_type(indexer, np_1darray_intp), np_1darray_intp)
1630+
check(assert_type(missing, np_1darray_intp), np_1darray_intp)
16311631

16321632

16331633
def test_index_get_indexer_for() -> None:
@@ -1655,6 +1655,6 @@ def test_index_get_slice_bound() -> None:
16551655

16561656
def test_index_slice_locs() -> None:
16571657
idx = pd.Index([1, 3])
1658-
res = idx.slice_locs(0, 1)
1659-
check(assert_type(res[0], np.intp | int), np.integer)
1660-
check(assert_type(res[1], np.intp | int), int)
1658+
start, end = idx.slice_locs(0, 1)
1659+
check(assert_type(start, np.intp | int), np.integer)
1660+
check(assert_type(end, np.intp | int), int)

0 commit comments

Comments
 (0)