From dcd929c9b83ecaeeee34d2ecdaf61f88653705cb Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 25 Mar 2021 21:52:02 +0100 Subject: fix: add missing Typevar binding in decorators --- poezio/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'poezio') diff --git a/poezio/decorators.py b/poezio/decorators.py index ee138744..ae975399 100644 --- a/poezio/decorators.py +++ b/poezio/decorators.py @@ -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: -- cgit v1.2.3