MCPcopy
hub / github.com/pydantic/pydantic / ModelWithStrictField

Class ModelWithStrictField

tests/test_strict.py:10–11  ·  tests/test_strict.py::ModelWithStrictField

Source from the content-addressed store, hash-verified

8@pytest.fixture(scope=&class="cm">#x27;sessionclass="st">', name='ModelWithStrictField')
9def model_with_strict_field():
10 class ModelWithStrictField(BaseModel):
11 a: Annotated[int, Field(strict=True)]
12
13 return ModelWithStrictField
14

Calls 1

FieldFunction · 0.90