aboutsummaryrefslogtreecommitdiffstats
path: root/bot/decorators.py
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2019-10-02 00:17:35 +0200
committerGravatar Numerlor <[email protected]>2019-10-02 00:17:35 +0200
commit1c7a7371bde7a31f5fbda2730b0e81761ed08be4 (patch)
tree96fef8fb1b75b3588727f614345deeafacd68585 /bot/decorators.py
parentcall the rewritten override_in_channel (diff)
add return type hint to override_in_channel inner function
Diffstat (limited to 'bot/decorators.py')
-rw-r--r--bot/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/decorators.py b/bot/decorators.py
index d7ce29cb..8748fd83 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -129,7 +129,7 @@ def override_in_channel(channels: typing.Tuple[int] = None) -> typing.Callable:
This decorator has to go before (below) below the `command` decorator.
"""
- def inner(func: typing.Callable):
+ def inner(func: typing.Callable) -> typing.Callable:
func.in_channel_override = channels
return func