2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 22:35:36 +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

@@ -9,7 +9,10 @@ class {class_name}(Object):
"""{docstring_args}
"""
__slots__ = [{slots}]
ID = {object_id}
QUALNAME = "{qualname}"
def __init__(self{arguments}):
{fields}