Skip to content

Commit f7861df

Browse files
committed
feat: delay dandischema.models import in dandi/cli/cmd_ls.py
1 parent 007e89a commit f7861df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dandi/cli/cmd_ls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os.path as op
44

55
import click
6-
from dandischema import models
76

87
from .base import devel_option, lgr, map_to_click_exceptions
98
from .formatter import JSONFormatter, JSONLinesFormatter, PYOUTFormatter, YAMLFormatter
@@ -92,6 +91,8 @@ def ls(
9291
):
9392
"""List .nwb files and dandisets metadata."""
9493

94+
from dandischema import models
95+
9596
# TODO: more logical ordering in case of fields = None
9697
common_fields = ("path", "size")
9798
if schema is not None:

0 commit comments

Comments
 (0)