Skip to content

Commit 890a6e6

Browse files
committed
precommit error fix
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
1 parent 0510351 commit 890a6e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/array_api_extra/_lib/_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def as_numpy_array(array: Array, *, xp: ModuleType) -> np.typing.NDArray[Any]:
139139
# Try DLPack (works for JAX and other backends)
140140
if hasattr(array, "__dlpack__"):
141141
try:
142-
return np.from_dlpack(array)
142+
return np.from_dlpack(array) # ignore[reportArgumentType]
143143
except (TypeError, BufferError):
144144
pass
145145

0 commit comments

Comments
 (0)