piwebasync/api/util.py
def reuse_validator(key: str, validate_func: Callable[[Any], Any]) -> Any:
    """
    Helper function for pydantic reuse validator
    """
    if isinstance(validate_func, partial):
        validate_func.__name__ = validate_func.func.__name__
    return validator(key, allow_reuse=True, check_fields=False)(validate_func)

    Helper function for pydantic reuse validator
    
Helper function for pydantic reuse validator
Helper function for pydantic reuse validator
def reuse_validator(key: str, validate_func: Callable[[Any], Any]) -> Any:
    if isinstance(validate_func, partial):
        validate_func.__name__ = validate_func.func.__name__
    return validator(key, allow_reuse=True, check_fields=False)(validate_func)
def reuse_validator ( key : str , validate_func : Callable [ [ Any ] , Any ] ) -> Any : if isinstance ( validate_func , partial ) : validate_func . __name__ = validate_func . func . __name__ return validator ( key , allow_reuse = True , check_fields = False ) ( validate_func )
Helper function for pydantic reuse validator
Helper function for pydantic reuse validator
"""
    Helper function for pydantic reuse validator
    """
key
str
validate_func
Callable[[Any], Any]