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

Class Model

tests/test_models.py:176–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175def test_strict_validation_unknown_fields() -> None:
176 class Model(BaseModel):
177 foo: str
178
179 model = parse_obj(Model, dict(foo="hello!", user="Robert"))
180 assert model.foo == "hello!"

Calls

no outgoing calls