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

Function takes_pydantic

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

Source from the content-addressed store, hash-verified

668 # our model type can be assigned to Pydantic's model type
669
670 def takes_pydantic(model: pydantic.BaseModel) -> None: # noqa: ARG001
671 ...
672
673 class OurModel(BaseModel):
674 foo: Optional[str] = None

Callers 1

test_type_compatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected