MCPcopy
hub / github.com/pydantic/pydantic / from_orm

Method from_orm

tests/mypy/modules/plugin_success.py:255–256  ·  view source on GitHub ↗
(cls, model: _TModel)

Source from the content-addressed store, hash-verified

253class OrmMixin(Generic[_TModel, _TType]):
254 @classmethod
255 def from_orm(cls, model: _TModel) -> _TType:
256 raise NotImplementedError
257
258 @classmethod
259 def from_orm_optional(cls, model: Optional[_TModel]) -> Optional[_TType]:

Callers 3

deprecated_from_ormFunction · 0.45
from_orm_optionalMethod · 0.45

Calls

no outgoing calls

Tested by 1

deprecated_from_ormFunction · 0.36