yaloader.utils.remove_missing_errors#
- yaloader.utils.remove_missing_errors(errors: List[ErrorDetails]) List[ErrorDetails][source]#
Recursively remove all errors which are
pydantic.PydanticUndefinedAnnotationfrom a list of errors.Errors in the given list might be altered while filtering.
- Parameters:
errors – The list of errors from which the PydanticUndefinedAnnotation should be removed
- Returns:
A recursive filtered list of the errors, excluding PydanticUndefinedAnnotation