2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 06:16:06 +00:00

Add __slots__ to Telegram TL types

This commit is contained in:
Dan
2019-03-16 15:30:55 +01:00
parent c3470b2713
commit 6bd9ddc95e
3 changed files with 25 additions and 29 deletions

View File

@@ -456,7 +456,9 @@ def start():
fields=fields,
read_types=read_types,
write_types=write_types,
return_arguments=", ".join([i[0] for i in sorted_args if i != ("flags", "#")])
return_arguments=", ".join([i[0] for i in sorted_args if i != ("flags", "#")]),
slots=", ".join(['"{}"'.format(i[0]) for i in sorted_args if i != ("flags", "#")]),
qualname="{}{}".format("{}.".format(c.namespace) if c.namespace else "", c.name)
)
)