Fix typing

This commit is contained in:
Alex Root Junior 2020-02-22 01:28:46 +02:00
parent 3f5c51e805
commit eea75b8e9a
2 changed files with 2 additions and 1 deletions

View file

@ -192,7 +192,7 @@ class Dispatcher(Router):
)
process_updates.add_done_callback(release_waiter, context=ctx)
def process_response(task: asyncio.Task):
def process_response(task: Future):
warnings.warn(
f"Detected slow response into webhook.\n"
f"Telegram is waiting for response only first 60 seconds and then re-send update.\n"

View file

@ -4,6 +4,7 @@ import time
import warnings
import pytest
from aiogram import Bot
from aiogram.api.methods import GetMe, GetUpdates, SendMessage
from aiogram.api.types import Chat, Message, Update, User