Skip to content

Commit 055367f

Browse files
committed
Fix method signatures
1 parent 29ef38d commit 055367f

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

pyrogram/api/core/future_salt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, valid_since: int or datetime, valid_until: int or datetime, s
3232
self.salt = salt
3333

3434
@staticmethod
35-
def read(b: BytesIO) -> "FutureSalt":
35+
def read(b: BytesIO, *args) -> "FutureSalt":
3636
valid_since = datetime.fromtimestamp(Int.read(b))
3737
valid_until = datetime.fromtimestamp(Int.read(b))
3838
salt = Long.read(b)

pyrogram/api/core/future_salts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, req_msg_id: int, now: int or datetime, salts: list):
3333
self.salts = salts
3434

3535
@staticmethod
36-
def read(b: BytesIO) -> "FutureSalts":
36+
def read(b: BytesIO, *args) -> "FutureSalts":
3737
req_msg_id = Long.read(b)
3838
now = datetime.fromtimestamp(Int.read(b))
3939

pyrogram/api/core/gzip_packed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, packed_data: Object):
3030
self.packed_data = packed_data
3131

3232
@staticmethod
33-
def read(b: BytesIO) -> "GzipPacked":
33+
def read(b: BytesIO, *args) -> "GzipPacked":
3434
# Return the Object itself instead of a GzipPacked wrapping it
3535
return Object.read(
3636
BytesIO(

pyrogram/api/core/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, body: Object, msg_id: int, seq_no: int, length: int):
3232
self.body = body
3333

3434
@staticmethod
35-
def read(b: BytesIO) -> "Message":
35+
def read(b: BytesIO, *args) -> "Message":
3636
msg_id = Long.read(b)
3737
seq_no = Int.read(b)
3838
length = Int.read(b)

pyrogram/api/core/msg_container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, messages: list):
3030
self.messages = messages
3131

3232
@staticmethod
33-
def read(b: BytesIO) -> "MsgContainer":
33+
def read(b: BytesIO, *args) -> "MsgContainer":
3434
count = Int.read(b)
3535
return MsgContainer([Message.read(b) for _ in range(count)])
3636

pyrogram/api/core/primitives/bytes.py

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

2424
class Bytes(Object):
2525
@staticmethod
26-
def read(b: BytesIO) -> bytes:
26+
def read(b: BytesIO, *args) -> bytes:
2727
length = int.from_bytes(b.read(1), "little")
2828

2929
if length <= 253:

pyrogram/api/core/primitives/double.py

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

2525
class Double(Object):
2626
@staticmethod
27-
def read(b: BytesIO) -> float:
27+
def read(b: BytesIO, *args) -> float:
2828
return unpack("d", b.read(8))[0]
2929

3030
def __new__(cls, value: float) -> bytes:

pyrogram/api/core/primitives/string.py

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

2424
class String(Bytes):
2525
@staticmethod
26-
def read(b: BytesIO) -> str:
26+
def read(b: BytesIO, *args) -> str:
2727
return super(String, String).read(b).decode()
2828

2929
def __new__(cls, value: str) -> bytes:

0 commit comments

Comments
 (0)