mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Fix some non-importable types for type hint
This commit is contained in:
parent
a0355a5cc4
commit
4bf6831be8
3 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
class GetMe(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.
|
"""A simple method for testing your authorization. Requires no parameters.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class GetUserProfilePhotos(BaseClient):
|
||||||
def get_user_profile_photos(self,
|
def get_user_profile_photos(self,
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
offset: int = 0,
|
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.
|
"""Use this method to get a list of profile pictures for a user.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ from ...ext import BaseClient
|
||||||
|
|
||||||
class GetUsers(BaseClient):
|
class GetUsers(BaseClient):
|
||||||
def get_users(self,
|
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.
|
"""Use this method to get information about a user.
|
||||||
You can retrieve up to 200 users at once.
|
You can retrieve up to 200 users at once.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue