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

Function takes_pydantic

tests/test_models.py:637–638  ·  view source on GitHub ↗
(model: pydantic.BaseModel)

Source from the content-addressed store, hash-verified

635 # our model type can be assigned to Pydantic's model type
636
637 def takes_pydantic(model: pydantic.BaseModel) -> None: # noqa: ARG001
638 ...
639
640 class OurModel(BaseModel):
641 foo: Optional[str] = None

Callers 1

test_type_compatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected