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

Class ModelWithStrictField

tests/test_strict.py:10–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8@pytest.fixture(scope='session', 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