Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ prop
Method
prop
tests/test_computed_fields.py:846–847 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
844
class
Model(BaseModel):
845
@computed_field
846
def
prop(self) -> int:
847
return
1
848
849
m = Model()
850
assert m.model_dump() == {
'prop'
: 1}
Callers
nothing calls this directly
Calls
1
Field
Function · 0.90
Tested by
no test coverage detected