Skip to content

Commit d8e0558

Browse files
yarikopticjwodder
andcommitted
Fix typing annotation and a type passed in
Co-authored-by: John T. Wodder II <jwodder@users.noreply.github.com>
1 parent 06940ee commit d8e0558

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dandi/files/bases.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def get_validation_errors(
146146
if devel_debug:
147147
raise
148148
return _pydantic_errors_to_validation_results(
149-
e, str(self.filepath), dandiset_path=self.dandiset_path
149+
[e], str(self.filepath), dandiset_path=self.dandiset_path
150150
)
151151
return []
152152

@@ -198,7 +198,7 @@ def get_validation_errors(
198198
if devel_debug:
199199
raise
200200
return _pydantic_errors_to_validation_results(
201-
e, str(self.filepath), dandiset_path=self.dandiset_path
201+
[e], str(self.filepath), dandiset_path=self.dandiset_path
202202
)
203203
except Exception as e:
204204
if devel_debug:
@@ -733,7 +733,7 @@ def _get_nwb_inspector_version():
733733

734734

735735
def _pydantic_errors_to_validation_results(
736-
errors: Any[list[dict], Exception],
736+
errors: list[dict | Exception],
737737
file_path: str,
738738
dandiset_path: Optional[Path] = None,
739739
) -> list[ValidationResult]:

0 commit comments

Comments
 (0)