MCPcopy
hub / github.com/pydantic/pydantic / display_errors

Function display_errors

pydantic/v1/error_wrappers.py:82–83  ·  view source on GitHub ↗
(errors: List['ErrorDict'])

Source from the content-addressed store, hash-verified

80
81
82def display_errors(errors: List['ErrorDict']) -> str:
83 return '\n'.join(f'{_display_error_loc(e)}\n {e["msg"]} ({_display_error_type_and_ctx(e)})' for e in errors)
84
85
86def _display_error_loc(error: 'ErrorDict') -> str:

Callers 1

__str__Method · 0.85

Calls 2

_display_error_locFunction · 0.85

Tested by

no test coverage detected