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.
or
if
1 parent 0019733 commit 08ac700Copy full SHA for 08ac700
src/zarr/core/dtype/npy/common.py
@@ -384,9 +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":
388
- return True
389
- return isinstance(data, float | int)
+ return data == "NaN" or data == "Infinity" or data == "-Infinity" or isinstance(data, float | int)
390
391
392
def check_json_float_v3(data: JSON) -> TypeGuard[JSONFloatV3]:
0 commit comments