Skip to content

Commit 4bf6831

Browse files
committed
Fix some non-importable types for type hint
1 parent a0355a5 commit 4bf6831

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyrogram/client/methods/users/get_me.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
class GetMe(BaseClient):
25-
def get_me(self) -> pyrogram.User:
25+
def get_me(self) -> "pyrogram.User":
2626
"""A simple method for testing your authorization. Requires no parameters.
2727
2828
Returns:

pyrogram/client/methods/users/get_user_profile_photos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class GetUserProfilePhotos(BaseClient):
2727
def get_user_profile_photos(self,
2828
user_id: Union[int, str],
2929
offset: int = 0,
30-
limit: int = 100) -> pyrogram.UserProfilePhotos:
30+
limit: int = 100) -> "pyrogram.UserProfilePhotos":
3131
"""Use this method to get a list of profile pictures for a user.
3232
3333
Args:

pyrogram/client/methods/users/get_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class GetUsers(BaseClient):
2727
def get_users(self,
28-
user_ids: Iterable[Union[int, str]]) -> Union[pyrogram.User or List[pyrogram.User]]:
28+
user_ids: Iterable[Union[int, str]]) -> Union["pyrogram.User", List["pyrogram.User"]]:
2929
"""Use this method to get information about a user.
3030
You can retrieve up to 200 users at once.
3131

0 commit comments

Comments
 (0)