import inspect


def _remove_hints_from_signature(signature):
    """Remove hint annotation from a signature."""
    params = []
    for name, param in signature.parameters.items():
        params.append(param.replace(annotation=inspect.Parameter.empty))
    return signature.replace(
        parameters=params, return_annotation=inspect.Signature.empty
    )