MCPcopy
hub / github.com/ormar-orm/ormar / construct

Method construct

ormar/models/newbasemodel.py:1170–1177  ·  view source on GitHub ↗
(
        cls: type["T"], _fields_set: Union[set[str], None] = None, **values: Any
    )

Source from the content-addressed store, hash-verified

1168 category=OrmarDeprecatedSince020,
1169 )
1170 def construct(
1171 cls: type["T"], _fields_set: Union[set[str], None] = None, **values: Any
1172 ) -> "T": # pragma: no cover
1173 warnings.warn(
1174 "The `construct` method is deprecated; use `model_construct` instead.",
1175 DeprecationWarning,
1176 )
1177 return cls.model_construct(_fields_set=_fields_set, **values)
1178
1179 @classmethod
1180 def model_construct(

Callers

nothing calls this directly

Calls 1

model_constructMethod · 0.80

Tested by

no test coverage detected