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 ee58707 commit 859ab15Copy full SHA for 859ab15
src/zarr/core/dtype/npy/common.py
@@ -384,7 +384,7 @@ def check_json_float_v2(data: JSON) -> TypeGuard[JSONFloatV2]:
384
Bool
385
True if the data is a float, False otherwise.
386
"""
387
- if data == "NaN" or data == "Infinity" or data == "-Infinity":
+ if data == "NaN" or data == "Infinity" or data == "-Infinity": # noqa: PLR1714
388
return True
389
return isinstance(data, float | int)
390
0 commit comments