pydantic.validate_call
Decorators for validating function calls.
def validate_call(
config: ConfigDict | None = None,
validate_return: bool = False,
) -> Callable[[AnyCallableT], AnyCallableT]
def validate_call(__func: AnyCallableT) -> AnyCallableT
Returns a decorated version of the function that validates the arguments and, optionally, the return value.
AnyCallableT | Callable[[AnyCallableT], AnyCallableT] — The decorated function.
The function to be decorated.
config : ConfigDict | None Default: None
The configuration dictionary.
Whether to validate the return value.