Further TLObject generator clean-up

Split everything into several functions, reused some more
common code (like accessing the "real" arguments instead
constantly filtering) and more, like using classmethods
instead staticmethods and then hardcoding the class name.
This commit is contained in:
Lonami Exo
2018-04-14 20:28:25 +02:00
parent 748f2db23d
commit 3b7c4fe278
3 changed files with 140 additions and 235 deletions

View File

@@ -189,6 +189,6 @@ class TLObject:
def __bytes__(self):
return b''
@staticmethod
def from_reader(reader):
@classmethod
def from_reader(cls, reader):
return TLObject()