MCPcopy
hub / github.com/pydantic/pydantic / _coerce_value

Method _coerce_value

pydantic/v1/utils.py:616–619  ·  view source on GitHub ↗
(cls, value: Any)

Source from the content-addressed store, hash-verified

614
615 @classmethod
616 def _coerce_value(cls, value: Any) -> Any:
617 if value is None or cls.is_true(value):
618 return value
619 return cls._coerce_items(value)
620
621 @staticmethod
622 def is_true(v: Any) -> bool:

Callers 2

_normalize_indexesMethod · 0.95
mergeMethod · 0.45

Calls 2

is_trueMethod · 0.45
_coerce_itemsMethod · 0.45

Tested by

no test coverage detected