MCPcopy
hub / github.com/pydantic/pydantic / triple_x

Method triple_x

tests/test_serialize.py:1103–1104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1101 @computed_field
1102 @property
1103 def triple_x(self) -> Annotated[int, PlainSerializer(lambda v: f'The triple of x is {v}', return_type=str)]:
1104 return self.two_x * 3
1105
1106 @computed_field
1107 @property

Callers

nothing calls this directly

Calls 1

PlainSerializerClass · 0.90

Tested by

no test coverage detected