Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ Foo
Class
Foo
tests/test_fields.py:56–58 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
54
def
test_init_var_field():
55
@pydantic.dataclasses.dataclass
56
class
Foo:
57
bar: str
58
baz: str = Field(init_var=True)
59
60
class
Model(BaseModel):
61
foo: Foo
Callers
1
test_init_var_field
Function · 0.70
Calls
1
Field
Function · 0.90
Tested by
1
test_init_var_field
Function · 0.56