Skip to content

Commit 969ae83

Browse files
committed
fix
1 parent 97f6967 commit 969ae83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_compat/common/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ def is_writeable_array(x: object) -> bool:
958958
"""
959959
cls = cast(Hashable, type(x))
960960
if _issubclass_fast(cls, "numpy", "ndarray"):
961-
return cast(npt.NDArray, x).flags.writeable
961+
return cast("npt.NDArray", x).flags.writeable
962962
res = _is_writeable_cls(cls)
963963
if res is not None:
964964
return res

0 commit comments

Comments
 (0)