Skip to content

Commit

Permalink
Fix typing annotation and a type passed in
Browse files Browse the repository at this point in the history
Co-authored-by: John T. Wodder II <[email protected]>
  • Loading branch information
yarikoptic and jwodder committed Dec 19, 2022
1 parent 06940ee commit d8e0558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dandi/files/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_validation_errors(
if devel_debug:
raise
return _pydantic_errors_to_validation_results(
e, str(self.filepath), dandiset_path=self.dandiset_path
[e], str(self.filepath), dandiset_path=self.dandiset_path
)
return []

Expand Down Expand Up @@ -198,7 +198,7 @@ def get_validation_errors(
if devel_debug:
raise
return _pydantic_errors_to_validation_results(
e, str(self.filepath), dandiset_path=self.dandiset_path
[e], str(self.filepath), dandiset_path=self.dandiset_path
)
except Exception as e:
if devel_debug:
Expand Down Expand Up @@ -733,7 +733,7 @@ def _get_nwb_inspector_version():


def _pydantic_errors_to_validation_results(
errors: Any[list[dict], Exception],
errors: list[dict | Exception],
file_path: str,
dandiset_path: Optional[Path] = None,
) -> list[ValidationResult]:
Expand Down

0 comments on commit d8e0558

Please sign in to comment.