The model holding `data`, made in each of the ways a model gets made.
(data: dict[str, Any])
| 417 | from_: str | None = pydantic.Field(alias="from", default=None) |
| 418 | |
| 419 | def make(data: dict[str, Any]) -> dict[str, MyModel]: |
| 420 | """The model holding `data`, made in each of the ways a model gets made.""" |
| 421 | return { |
| 422 | "constructor": MyModel(**data), |
| 423 | "validation": model_parse(MyModel, data), |
| 424 | "construct": MyModel.construct(**data), |
| 425 | "construct_type": cast(MyModel, construct_type(type_=MyModel, value=data)), |
| 426 | "copy": model_copy(MyModel(**data)), |
| 427 | } |
| 428 | |
| 429 | when = datetime(2023, 2, 23, 14, 16, 36, tzinfo=timezone.utc) |
| 430 | sent_when = "2023-02-23T14:16:36Z" if not PYDANTIC_V1 else "2023-02-23T14:16:36+00:00" |
no test coverage detected