mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +03:00
Don't add functions as possible argument types
This commit is contained in:
parent
bb180a1db8
commit
8f04ec820f
|
@ -71,8 +71,9 @@ def parse_tl(file_path, layer, invalid_bot_methods=None):
|
||||||
result = _from_line(line, is_function, layer=layer)
|
result = _from_line(line, is_function, layer=layer)
|
||||||
result.bot_usable = result.fullname not in invalid_bot_methods
|
result.bot_usable = result.fullname not in invalid_bot_methods
|
||||||
obj_all.append(result)
|
obj_all.append(result)
|
||||||
obj_by_name[result.fullname] = result
|
if not result.is_function:
|
||||||
obj_by_type[result.result].append(result)
|
obj_by_name[result.fullname] = result
|
||||||
|
obj_by_type[result.result].append(result)
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
if 'vector#1cb5c415' not in str(e):
|
if 'vector#1cb5c415' not in str(e):
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user