From 1c7a7371bde7a31f5fbda2730b0e81761ed08be4 Mon Sep 17 00:00:00 2001 From: Numerlor Date: Wed, 2 Oct 2019 00:17:35 +0200 Subject: add return type hint to override_in_channel inner function --- bot/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/decorators.py') 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 -- cgit v1.2.3