MCPcopy
hub / github.com/pydantic/pydantic / loc_tuple

Method loc_tuple

pydantic/v1/error_wrappers.py:35–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self._loc = loc
34
35 def loc_tuple(self) -> 'Loc':
36 if isinstance(self._loc, tuple):
37 return self._loc
38 else:
39 return (self._loc,)
40
41 def __repr_args__(self) -> 'ReprArgs':
42 return [('exc', self.exc), ('loc', self.loc_tuple())]

Callers 2

__repr_args__Method · 0.95
flatten_errorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected