Skip to content

Commit 9c89224

Browse files
committed
🩹 don't attempt to directly use np.array_api.Array
1 parent 95ec86d commit 9c89224

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎tests/integration/test_numpy1.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from typing import Any
22

3+
# requires numpy < 2
34
import numpy.array_api as np
45

56
import array_api_typing as xpt
67

78
###
89
# Ensure that `np.ndarray` instances are assignable to `xpt.HasArrayNamespace`.
910

10-
arr: np.Array
11+
arr = np.eye(2)
1112
arr_namespace: xpt.HasArrayNamespace[Any] = arr

0 commit comments

Comments
 (0)