validate_arguments
Decorator to validate the arguments passed to a function.
def validate_arguments(
func: Optional['AnyCallableT'] = None,
config: 'ConfigType' = None
) - > Any
Decorator to validate the arguments passed to a function.
Parameters
| Name | Type | Description |
|---|---|---|
| func | Optional['AnyCallableT'] = None | The callable function to be decorated for argument validation |
| config | 'ConfigType' = None | A Pydantic configuration dictionary or class used to customize validation behavior |
Returns
| Type | Description |
|---|---|
Any | A wrapped version of the function that performs validation on call, or a decorator function if used without arguments. |