From 4bf6831be85ab07d56924eaf320b9090019004c3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 22 Dec 2018 11:22:58 +0100 Subject: [PATCH] Fix some non-importable types for type hint --- pyrogram/client/methods/users/get_me.py | 2 +- pyrogram/client/methods/users/get_user_profile_photos.py | 2 +- pyrogram/client/methods/users/get_users.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/methods/users/get_me.py b/pyrogram/client/methods/users/get_me.py index 3f3e85c3..211e2ee9 100644 --- a/pyrogram/client/methods/users/get_me.py +++ b/pyrogram/client/methods/users/get_me.py @@ -22,7 +22,7 @@ from ...ext import BaseClient class GetMe(BaseClient): - def get_me(self) -> pyrogram.User: + def get_me(self) -> "pyrogram.User": """A simple method for testing your authorization. Requires no parameters. Returns: diff --git a/pyrogram/client/methods/users/get_user_profile_photos.py b/pyrogram/client/methods/users/get_user_profile_photos.py index c097aced..2108f2d6 100644 --- a/pyrogram/client/methods/users/get_user_profile_photos.py +++ b/pyrogram/client/methods/users/get_user_profile_photos.py @@ -27,7 +27,7 @@ class GetUserProfilePhotos(BaseClient): def get_user_profile_photos(self, user_id: Union[int, str], offset: int = 0, - limit: int = 100) -> pyrogram.UserProfilePhotos: + limit: int = 100) -> "pyrogram.UserProfilePhotos": """Use this method to get a list of profile pictures for a user. Args: diff --git a/pyrogram/client/methods/users/get_users.py b/pyrogram/client/methods/users/get_users.py index 3ee1bc61..d7b80579 100644 --- a/pyrogram/client/methods/users/get_users.py +++ b/pyrogram/client/methods/users/get_users.py @@ -25,7 +25,7 @@ from ...ext import BaseClient class GetUsers(BaseClient): def get_users(self, - user_ids: Iterable[Union[int, str]]) -> Union[pyrogram.User or List[pyrogram.User]]: + user_ids: Iterable[Union[int, str]]) -> Union["pyrogram.User", List["pyrogram.User"]]: """Use this method to get information about a user. You can retrieve up to 200 users at once.