Code
Hub
Workspaces
Connect your AI tool
Indexed graphs
Engine
MCP
copy
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;session
class
="st">', name='ModelWithStrictField')
9
def
model_with_strict_field():
10
class
ModelWithStrictField(BaseModel):
11
a: Annotated[int, Field(strict=True)]
12
13
return
ModelWithStrictField
14
Callers
2
test_parse_strict_mode_on_field_invalid
Function · 0.85
test_parse_strict_mode_on_field_valid
Function · 0.85
Calls
1
Field
Function · 0.90
Tested by
2
test_parse_strict_mode_on_field_invalid
Function · 0.68
test_parse_strict_mode_on_field_valid
Function · 0.68