Skip to content

Commit 6fcd976

Browse files
committed
fix circular dep
1 parent b919483 commit 6fcd976

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/zarr/core/buffer/core.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
import numpy as np
1717
import numpy.typing as npt
1818

19-
from zarr.registry import (
20-
get_buffer_class,
21-
get_ndbuffer_class,
22-
)
2319

2420
if TYPE_CHECKING:
2521
from collections.abc import Iterable, Sequence
@@ -507,4 +503,9 @@ class BufferPrototype(NamedTuple):
507503

508504
# The default buffer prototype used throughout the Zarr codebase.
509505
def default_buffer_prototype() -> BufferPrototype:
506+
from zarr.registry import (
507+
get_buffer_class,
508+
get_ndbuffer_class,
509+
)
510+
510511
return BufferPrototype(buffer=get_buffer_class(), nd_buffer=get_ndbuffer_class())

0 commit comments

Comments
 (0)