We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06940ee commit a2c9ba6Copy full SHA for a2c9ba6
dandi/files/bases.py
@@ -198,7 +198,7 @@ def get_validation_errors(
198
if devel_debug:
199
raise
200
return _pydantic_errors_to_validation_results(
201
- e, str(self.filepath), dandiset_path=self.dandiset_path
+ [e], str(self.filepath), dandiset_path=self.dandiset_path
202
)
203
except Exception as e:
204
@@ -733,7 +733,7 @@ def _get_nwb_inspector_version():
733
734
735
def _pydantic_errors_to_validation_results(
736
- errors: Any[list[dict], Exception],
+ errors: list[dict | Exception],
737
file_path: str,
738
dandiset_path: Optional[Path] = None,
739
) -> list[ValidationResult]:
0 commit comments