Skip to content

Commit

Permalink
Fix get_stories types (#97)
Browse files Browse the repository at this point in the history
* Fix get_stories types

that will help the code editor with IntelliSense

* should be good
  • Loading branch information
m2k7m authored Oct 7, 2024
1 parent 5e6ad29 commit c38d14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrogram/methods/stories/get_stories.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

from typing import Union, Iterable
from typing import Union, Iterable, List

import pyrogram
from pyrogram import raw
Expand All @@ -28,7 +28,7 @@ async def get_stories(
self: "pyrogram.Client",
chat_id: Union[int, str],
story_ids: Union[int, Iterable[int]],
) -> "types.Stories":
) -> Union["types.Story", List["types.Story"]] :
"""Get one or more stories from a chat by using stories identifiers.
.. include:: /_includes/usable-by/users.rst
Expand Down

0 comments on commit c38d14b

Please sign in to comment.