We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f6967 commit 969ae83Copy full SHA for 969ae83
array_api_compat/common/_helpers.py
@@ -958,7 +958,7 @@ def is_writeable_array(x: object) -> bool:
958
"""
959
cls = cast(Hashable, type(x))
960
if _issubclass_fast(cls, "numpy", "ndarray"):
961
- return cast(npt.NDArray, x).flags.writeable
+ return cast("npt.NDArray", x).flags.writeable
962
res = _is_writeable_cls(cls)
963
if res is not None:
964
return res
0 commit comments