Replace Client with BaseClient type hint · stack-queue/pyrogram@4fb9969 · GitHub
Skip to content

Commit 4fb9969

Browse files
committed
Replace Client with BaseClient type hint
1 parent 5035daa commit 4fb9969

26 files changed

Lines changed: 28 additions & 28 deletions

pyrogram/client/types/bots/callback_query.py

Lines changed: 1 addition & 1 deletion

pyrogram/client/types/messages_and_media/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Animation(PyrogramType):
5959

6060
def __init__(self,
6161
*,
62-
client: "pyrogram.Client",
62+
client: "pyrogram.client.ext.BaseClient",
6363
file_id: str,
6464
width: int,
6565
height: int,

pyrogram/client/types/messages_and_media/audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Audio(PyrogramType):
5959

6060
def __init__(self,
6161
*,
62-
client: "pyrogram.Client",
62+
client: "pyrogram.client.ext.BaseClient",
6363
file_id: str,
6464
duration: int,
6565
thumb: PhotoSize = None,

pyrogram/client/types/messages_and_media/contact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Contact(PyrogramType):
4444

4545
def __init__(self,
4646
*,
47-
client: "pyrogram.Client",
47+
client: "pyrogram.client.ext.BaseClient",
4848
phone_number: str,
4949
first_name: str,
5050
last_name: str = None,

pyrogram/client/types/messages_and_media/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Document(PyrogramType):
5050

5151
def __init__(self,
5252
*,
53-
client: "pyrogram.Client",
53+
client: "pyrogram.client.ext.BaseClient",
5454
file_id: str,
5555
thumb: PhotoSize = None,
5656
file_name: str = None,

pyrogram/client/types/messages_and_media/location.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Location(PyrogramType):
3535

3636
def __init__(self,
3737
*,
38-
client: "pyrogram.Client",
38+
client: "pyrogram.client.ext.BaseClient",
3939
longitude: float,
4040
latitude: float):
4141
super().__init__(client)

pyrogram/client/types/messages_and_media/message.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ class Message(PyrogramType):
210210
Messages sent from yourself to other chats are outgoing (*outgoing* is True).
211211
An exception is made for your own personal chat; messages sent there will be incoming.
212212
213-
matches (``List of regex Matches``, *optional*):
213+
matches (List of regex Matches, *optional*):
214214
A list containing all `Match Objects <https://docs.python.org/3/library/re.html#match-objects>`_ that match
215215
the text of this message. Only applicable when using :obj:`Filters.regex <pyrogram.Filters.regex>`.
216216
217-
command (``List of strings``, *optional*):
217+
command (List of ``str``, *optional*):
218218
A list containing the command and its arguments, if any.
219219
E.g.: "/start 1 2 3" would produce ["start", "1", "2", "3"].
220220
Only applicable when using :obj:`Filters.command <pyrogram.Filters.command>`.
@@ -228,7 +228,7 @@ class Message(PyrogramType):
228228

229229
def __init__(self,
230230
*,
231-
client: "pyrogram.Client",
231+
client: "pyrogram.client.ext.BaseClient",
232232
message_id: int,
233233
date: int = None,
234234
chat: Chat = None,

pyrogram/client/types/messages_and_media/message_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MessageEntity(PyrogramType):
6565

6666
def __init__(self,
6767
*,
68-
client: "pyrogram.Client",
68+
client: "pyrogram.client.ext.BaseClient",
6969
type: str,
7070
offset: int,
7171
length: int,

pyrogram/client/types/messages_and_media/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Messages(PyrogramType):
3838

3939
def __init__(self,
4040
*,
41-
client: "pyrogram.Client",
41+
client: "pyrogram.client.ext.BaseClient",
4242
total_count: int,
4343
messages: List[Message]):
4444
super().__init__(client)

pyrogram/client/types/messages_and_media/photo.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)