This commit is contained in:
RumovZ 2021-06-13 08:59:58 +02:00
parent 0033d49646
commit 46d226c5a8

View File

@ -387,11 +387,11 @@ def legacy_func(sub: Optional[str] = None) -> Callable:
else:
hint = ""
def decorater(func: Callable) -> Callable:
def decorator(func: Callable) -> Callable:
def decorated_func(*args: Any, **kwargs: Any) -> Any:
print(f"'{func.__name__}' is deprecated{hint}.")
return func(*args, **kwargs)
return decorated_func
return decorater
return decorator