File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1414if TYPE_CHECKING :
1515 import numcodecs .abc
1616
17+ from zarr .abc .buffer import Buffer , NDBuffer
1718 from zarr .core .array_spec import ArraySpec
18- from zarr .core .buffer import Buffer , NDBuffer
1919
2020
2121@dataclass (frozen = True )
Original file line number Diff line number Diff line change 1+ import warnings
2+
3+ from zarr .abc .buffer import Buffer , BufferPrototype , NDBuffer # noqa: F401
4+
5+ warnings .warn (
6+ "The zarr.core.buffer module is deprecated and will be removed in a future version. "
7+ "Please use zarr.buffer and zarr.abc.buffer modules instead." ,
8+ FutureWarning ,
9+ stacklevel = 2 ,
10+ )
Original file line number Diff line number Diff line change 1+ from zarr .buffer .cpu import as_numpy_array_wrapper # noqa: F401
Original file line number Diff line number Diff line change 1010if TYPE_CHECKING :
1111 from importlib .metadata import EntryPoint
1212
13+ from zarr .abc .buffer import Buffer , NDBuffer
1314 from zarr .abc .codec import (
1415 ArrayArrayCodec ,
1516 ArrayBytesCodec ,
1617 BytesBytesCodec ,
1718 Codec ,
1819 CodecPipeline ,
1920 )
20- from zarr .core .buffer import Buffer , NDBuffer
2121 from zarr .core .common import JSON
2222
2323__all__ = [
You can’t perform that action at this time.
0 commit comments