Skip to content

Commit 066e16e

Browse files
committed
feat: delay dandischema.models import in dandi/download.py
1 parent f7861df commit 066e16e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dandi/download.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from typing import IO, Any, Literal
2222

2323
from dandischema.digests.dandietag import ETagHashlike
24-
from dandischema.models import DigestType
2524
from fasteners import InterProcessLock
2625
import humanize
2726
from interleave import FINISH_CURRENT, lazy_interleave
@@ -995,6 +994,8 @@ def digest_callback(path: str, algoname: str, d: str) -> None:
995994
digests[path] = d
996995

997996
def downloads_gen():
997+
from dandischema.models import DigestType
998+
998999
for entry in asset.iterfiles():
9991000
entries.append(entry)
10001001
etag = entry.digest

0 commit comments

Comments
 (0)