Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ two_x
Method
two_x
tests/test_serialize.py:1055–1056 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1053
@computed_field
1054
@property
1055
def
two_x(self) ->
'IntAlias'
:
# noqa F821
1056
return
self.x * 2
1057
1058
Model.model_rebuild(_types_namespace={
'IntAlias'
: int})
1059
Callers
nothing calls this directly
Calls
1
PlainSerializer
Class · 0.90
Tested by
no test coverage detected