2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-30 22:05:28 +00:00

Improve type hints

This commit is contained in:
Dan
2022-04-24 11:56:06 +02:00
parent 4ebf5cf7e9
commit 32624ef5e6
189 changed files with 729 additions and 815 deletions

View File

@@ -27,7 +27,7 @@ class {name}(TLObject): # type: ignore
{read_types}
return {name}({return_arguments})
def write(self) -> bytes:
def write(self, *args) -> bytes:
b = BytesIO()
b.write(Int(self.ID, False))