Validation Decorator
Decorator for validating function calls.
def validate_call(
config: ConfigDict | None = None,
validate_return: bool = False,
) -> Callable[[AnyCallableT], AnyCallableT]
def validate_call(__func: AnyCallableT) -> AnyCallableT
Usage docs: https://docs.pydantic.dev/2.4/concepts/validation_decorator/
Returns a decorated wrapper around the function that validates the arguments and, optionally, the return value.
Usage may be either as a plain decorator @validate_call or with arguments @validate_call(...).
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.