diff options
author | 2019-10-02 00:17:35 +0200 | |
---|---|---|
committer | 2019-10-02 00:17:35 +0200 | |
commit | 1c7a7371bde7a31f5fbda2730b0e81761ed08be4 (patch) | |
tree | 96fef8fb1b75b3588727f614345deeafacd68585 /bot | |
parent | call the rewritten override_in_channel (diff) |
add return type hint to override_in_channel inner function
Diffstat (limited to 'bot')
-rw-r--r-- | bot/decorators.py | 2 |
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 |