File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments