MCPcopy
hub / github.com/pydantic/pydantic / SubModel

Class SubModel

tests/test_private_attributes.py:56–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55def test_private_attribute_nested():
56 class SubModel(BaseModel):
57 _foo = PrivateAttr(42)
58 x: int
59
60 class Model(BaseModel):
61 y: int

Callers

nothing calls this directly

Calls 1

PrivateAttrFunction · 0.90

Tested by

no test coverage detected