Skip to content

Commit a2c9ba6

Browse files
yarikopticjwodder
andauthored
Fix typing annotation and a type passed in
Co-authored-by: John T. Wodder II <[email protected]>
1 parent 06940ee commit a2c9ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dandi/files/bases.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -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)