From 7a5ab4bffa85dc25e43ee7a088341c88f3a5ae05 Mon Sep 17 00:00:00 2001 From: Marco Burro Date: Fri, 15 Apr 2022 11:35:21 +0200 Subject: [PATCH] Fix inline query results typing (#958) --- pyrogram/methods/bots/answer_inline_query.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/methods/bots/answer_inline_query.py b/pyrogram/methods/bots/answer_inline_query.py index 9683e1bb..24e7a30c 100644 --- a/pyrogram/methods/bots/answer_inline_query.py +++ b/pyrogram/methods/bots/answer_inline_query.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -from typing import List +from typing import Iterable from pyrogram import raw from pyrogram import types @@ -27,7 +27,7 @@ class AnswerInlineQuery(Scaffold): async def answer_inline_query( self, inline_query_id: str, - results: List["types.InlineQueryResult"], + results: Iterable["types.InlineQueryResult"], cache_time: int = 300, is_gallery: bool = False, is_personal: bool = False,