summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-25 21:52:02 +0100
committermathieui <mathieui@mathieui.net>2021-04-02 17:44:36 +0200
commitdcd929c9b83ecaeeee34d2ecdaf61f88653705cb (patch)
tree8a33bcedc641b4692ce788fe5c9c455fdd96ba51
parent3391a44206cfd56b57b51d58295da408e00b3439 (diff)
downloadpoezio-dcd929c9b83ecaeeee34d2ecdaf61f88653705cb.tar.gz
poezio-dcd929c9b83ecaeeee34d2ecdaf61f88653705cb.tar.bz2
poezio-dcd929c9b83ecaeeee34d2ecdaf61f88653705cb.tar.xz
poezio-dcd929c9b83ecaeeee34d2ecdaf61f88653705cb.zip
fix: add missing Typevar binding in decorators
-rw-r--r--poezio/decorators.py2
1 files changed, 1 insertions, 1 deletions
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: