| 411 | |
| 412 | async def test_pydantic_models_are_dumped(send: Send) -> None: |
| 413 | class MyModel(BaseModel): |
| 414 | foo: str |
| 415 | when: datetime |
| 416 | unset: str | None = None |
| 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.""" |