def METHOD_NAME(*args: P.args, **kwargs: P.kwargs) -> T:
    if until and self.is_bad_version(until):
        raise exception(message)
    warnings.warn(message, warning, stacklevel=2)
    return func(*args, **kwargs)