Skip to content

Commit 9ea1426

Browse files
committed
test: type out-of-bounds param as JSON for mypy
1 parent 01a71d4 commit 9ea1426

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_dtype/test_npy/test_int.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
from tests.test_dtype.test_wrapper import BaseTestZDType
7+
from zarr.core.common import JSON
78
from zarr.core.dtype.npy.int import Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64
89

910

@@ -353,7 +354,7 @@ def test_string_integer_from_json_scalar() -> None:
353354
],
354355
)
355356
def test_out_of_bounds_integer_from_json_scalar(
356-
dtype_instance: Int8 | UInt8 | UInt64 | Int64, value: object
357+
dtype_instance: Int8 | UInt8 | UInt64 | Int64, value: JSON
357358
) -> None:
358359
"""An integer outside the dtype's range raises a validation error, not
359360
numpy's OverflowError. Regression test for

0 commit comments

Comments
 (0)