Skip to content

Commit 4f16908

Browse files
committed
use np.ndarray in test
1 parent c31d382 commit 4f16908

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/indexes/test_indexes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,8 +1674,6 @@ def test_index_view() -> None:
16741674
ind = pd.Index([1, 2])
16751675
check(assert_type(ind.view("int64"), np_1darray), np_1darray)
16761676
check(assert_type(ind.view(), "pd.Index[int]"), pd.Index)
1677-
# on NumPy<1.23, we get:
1678-
# error: "assert_type" mismatch: expected "ndarray[tuple[Any, ...], dtype[Any]]" but received "ndarray[Unknown, Unknown]" (reportAssertTypeFailure)
16791677
if sys.version_info >= (3, 11):
16801678
# mypy and pyright differ here in what they report:
16811679
# - mypy: ndarray[Any, Any]"

0 commit comments

Comments
 (0)