MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / MyModel

Class MyModel

tests/test_prepare.py:413–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411
412async 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."""

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by 1

makeFunction · 0.68