0.1.dev2184+g1e0cbe7.d20250401
Directory
Methods
Variables
Property |
Type |
Description |
FuncType |
TypeVar |
|
Methods
model_serializer()
def model_serializer(
__f: typing.Optional[typing.Callable[..., typing.Any]],
mode: typing.Literal['plain', 'wrap'],
when_used: typing.Literal['always', 'unless-none', 'json', 'json-unless-none'],
return_type: typing.Any,
) -> typing.Callable[[typing.Any], typing.Any]
Placeholder decorator for Pydantic model_serializer.
Parameter |
Type |
__f |
typing.Optional[typing.Callable[..., typing.Any]] |
mode |
typing.Literal['plain', 'wrap'] |
when_used |
typing.Literal['always', 'unless-none', 'json', 'json-unless-none'] |
return_type |
typing.Any |
model_validator()
def model_validator(
mode: typing.Literal['wrap', 'before', 'after'],
) -> typing.Callable[[typing.Callable[..., typing.Any]], typing.Callable[..., typing.Any]]
Placeholder decorator for Pydantic model_validator.
Parameter |
Type |
mode |
typing.Literal['wrap', 'before', 'after'] |