Fix typo
This commit is contained in:
parent
0033d49646
commit
46d226c5a8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user