Skip to content

Commit e977a51

Browse files
committed
use np.ndarray in test
1 parent efd03b3 commit e977a51

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/indexes/test_indexes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
np_1darray_bool,
3838
np_1darray_int64,
3939
np_1darray_intp,
40-
np_ndarray,
4140
np_ndarray_dt,
4241
)
4342

@@ -1681,9 +1680,9 @@ def test_index_view() -> None:
16811680
# mypy and pyright differ here in what they report:
16821681
# - mypy: ndarray[Any, Any]"
16831682
# - pyright: ndarray[tuple[Any, ...], dtype[Any]]
1684-
check(assert_type(ind.view(np.ndarray), np_ndarray), np.ndarray) # type: ignore[assert-type]
1683+
check(assert_type(ind.view(np.ndarray), np.ndarray), np.ndarray) # type: ignore[assert-type]
16851684
else:
1686-
check(assert_type(ind.view(np.ndarray), np_ndarray), np.ndarray) # type: ignore[assert-type] # pyright: ignore[reportAssertTypeFailure]
1685+
check(assert_type(ind.view(np.ndarray), np.ndarray), np.ndarray) # type: ignore[assert-type] # pyright: ignore[reportAssertTypeFailure]
16871686

16881687
class MyArray(np.ndarray): ...
16891688

0 commit comments

Comments
 (0)