File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
tests/test_dtype/test_npy Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1616from typing_extensions import ReadOnly
1717
1818from zarr .core .common import NamedConfig
19- from zarr .errors import ZarrFutureWarning
19+ from zarr .errors import UnstableSpecificationWarning
2020
2121EndiannessStr = Literal ["little" , "big" ]
2222ENDIANNESS_STR : Final = "little" , "big"
@@ -217,9 +217,6 @@ class HasObjectCodec:
217217 object_codec_id : ClassVar [str ]
218218
219219
220- class UnstableSpecificationWarning (ZarrFutureWarning ): ...
221-
222-
223220def v3_unstable_dtype_warning (dtype : object ) -> None :
224221 """
225222 Emit this warning when a data type does not have a stable zarr v3 spec
Original file line number Diff line number Diff line change @@ -92,3 +92,6 @@ class ZarrRuntimeWarning(RuntimeWarning):
9292 """
9393 A warning for dubious runtime behavior.
9494 """
95+
96+
97+ class UnstableSpecificationWarning (ZarrFutureWarning ): ...
Original file line number Diff line number Diff line change 22import pytest
33
44from tests .test_dtype .test_wrapper import BaseTestZDType
5- from zarr .core .dtype .common import UnstableSpecificationWarning
65from zarr .core .dtype .npy .bytes import NullTerminatedBytes , RawBytes , VariableLengthBytes
6+ from zarr .errors import UnstableSpecificationWarning
77
88
99class TestNullTerminatedBytes (BaseTestZDType ):
Original file line number Diff line number Diff line change 55
66from tests .test_dtype .test_wrapper import BaseTestZDType
77from zarr .core .dtype import FixedLengthUTF32
8- from zarr .core .dtype .common import UnstableSpecificationWarning
98from zarr .core .dtype .npy .string import _NUMPY_SUPPORTS_VLEN_STRING , VariableLengthUTF8
9+ from zarr .errors import UnstableSpecificationWarning
1010
1111if _NUMPY_SUPPORTS_VLEN_STRING :
1212
You can’t perform that action at this time.
0 commit comments