Fix "methods returning this type" not accounting for vectors

This commit is contained in:
Lonami Exo
2019-07-15 10:05:26 +02:00
parent 944fb10733
commit de46745926
2 changed files with 11 additions and 4 deletions

View File

@@ -58,6 +58,14 @@ class TLObject:
self.real_args = list(a for a in self.sorted_args() if not
(a.flag_indicator or a.generic_definition))
@property
def innermost_result(self):
index = self.result.find('<')
if index == -1:
return self.result
else:
return self.result[index + 1:-1]
def sorted_args(self):
"""Returns the arguments properly sorted and ready to plug-in
into a Python's method header (i.e., flags and those which