From 836ac46261b85595fe5971c602a8d3795a9af2bc Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Mar 2019 14:49:08 +0100 Subject: [PATCH] Fix type annotation in TelegramBot --- royalnet/bots/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalnet/bots/telegram.py b/royalnet/bots/telegram.py index 218695a1..cc7eb58f 100644 --- a/royalnet/bots/telegram.py +++ b/royalnet/bots/telegram.py @@ -6,7 +6,7 @@ from ..utils import asyncify, Call, Command class TelegramBot: - def __init__(self, api_key: str, commands: typing.List[Command], *, missing_command: Command=NullCommand): + def __init__(self, api_key: str, commands: typing.List[typing.Type[Command]], *, missing_command: Command=NullCommand): self.bot = telegram.Bot(api_key) self.should_run = False self.offset = -100