mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix "methods returning this type" not accounting for vectors
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user