fix: add missing Typevar binding in decorators

This commit is contained in:
mathieui 2021-03-25 21:52:02 +01:00
parent 3391a44206
commit dcd929c9b8

View file

@ -209,7 +209,7 @@ class CommandArgParser:
command_args_parser = CommandArgParser()
def deny_anonymous(func: Callable) -> Callable:
def deny_anonymous(func: T) -> T:
"""Decorator to disable commands when using an anonymous account."""
def before(args: Any, kwargs: Any) -> Any: