Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ ModelTwo
Class
ModelTwo
tests/test_construction.py:153–159 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
151
@pytest.fixture(scope=
'session'
, name=
'ModelTwo'
)
152
def
model_two_fixture():
153
class
ModelTwo(BaseModel):
154
_foo_ = PrivateAttr({
'private'
})
155
156
a: float
157
b: int = 10
158
c: str =
'foobar'
159
d: Model
160
161
return
ModelTwo
162
Callers
10
test_deep_copy
Function · 0.70
test_copy_exclude
Function · 0.70
test_copy_include
Function · 0.70
test_copy_include_exclude
Function · 0.70
test_copy_update
Function · 0.70
test_copy_set_fields
Function · 0.70
test_copy_undefined
Function · 0.70
test_dunder_copy
Function · 0.70
test_dunder_deepcopy
Function · 0.70
test_model_copy
Function · 0.70
Calls
1
PrivateAttr
Function · 0.90
Tested by
10
test_deep_copy
Function · 0.56
test_copy_exclude
Function · 0.56
test_copy_include
Function · 0.56
test_copy_include_exclude
Function · 0.56
test_copy_update
Function · 0.56
test_copy_set_fields
Function · 0.56
test_copy_undefined
Function · 0.56
test_dunder_copy
Function · 0.56
test_dunder_deepcopy
Function · 0.56
test_model_copy
Function · 0.56