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 931faae commit 6db8b11Copy full SHA for 6db8b11
array_api_compat/common/_helpers.py
@@ -80,7 +80,7 @@ def _is_jax_zero_gradient_array(x: object) -> TypeGuard[_ZeroGradientArray]:
80
"""
81
# Fast exit
82
try:
83
- dtype = x.dtype
+ dtype = x.dtype # type: ignore[attr-defined]
84
except AttributeError:
85
return False
86
if not _issubclass_fast(type(dtype), "numpy.dtypes", "VoidDType"):
0 commit comments