diff options
author | mathieui <mathieui@mathieui.net> | 2021-03-25 21:52:02 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-02 17:44:36 +0200 |
commit | dcd929c9b83ecaeeee34d2ecdaf61f88653705cb (patch) | |
tree | 8a33bcedc641b4692ce788fe5c9c455fdd96ba51 | |
parent | 3391a44206cfd56b57b51d58295da408e00b3439 (diff) | |
download | poezio-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.py | 2 |
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: |