fix RequestMiddlewareType callable signature

This commit is contained in:
darksidecat 2021-10-04 18:36:00 +03:00
parent b021e9df5c
commit bdd5bb0d16

View file

@ -53,7 +53,7 @@ NextRequestMiddlewareType = Callable[
RequestMiddlewareType = Union[
BaseRequestMiddleware,
Callable[
[NextRequestMiddlewareType, "Bot", TelegramMethod[TelegramType]],
["Bot", TelegramMethod[TelegramType], NextRequestMiddlewareType],
Awaitable[Response[TelegramType]],
],
]