Skip to content

Commit b151c39

Browse files
committed
feat: delay import of dandi.misctypes.DUMMY_DANDI_ZARR_CHECKSUM in dandi.files.zarr.py
This is a step in delaying import of `schema.models` in `dandi.files.zarr.py`
1 parent af10d2c commit b151c39

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

dandi/files/zarr.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
RESTFullAPIClient,
3535
)
3636
from dandi.metadata.core import get_default_metadata
37-
from dandi.misctypes import DUMMY_DANDI_ZARR_CHECKSUM, BasePath, Digest
37+
from dandi.misctypes import BasePath, Digest
3838
from dandi.utils import (
3939
chunked,
4040
exclude_from_zarr,
@@ -363,7 +363,11 @@ class ZarrStat:
363363
class ZarrAsset(LocalDirectoryAsset[LocalZarrEntry]):
364364
"""Representation of a local Zarr directory"""
365365

366-
_DUMMY_DIGEST = DUMMY_DANDI_ZARR_CHECKSUM
366+
@staticmethod
367+
def _get_dummy_digest() -> Digest:
368+
from dandi.misctypes import DUMMY_DANDI_ZARR_CHECKSUM
369+
370+
return DUMMY_DANDI_ZARR_CHECKSUM
367371

368372
@property
369373
def filetree(self) -> LocalZarrEntry:

0 commit comments

Comments
 (0)