mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Update compiler
This commit is contained in:
parent
24700d4d37
commit
144c229fec
@ -58,7 +58,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool
|
|||||||
elif t == "!X":
|
elif t == "!X":
|
||||||
return "Any method from :obj:`pyrogram.api.functions`"
|
return "Any method from :obj:`pyrogram.api.functions`"
|
||||||
elif t.startswith("Vector"):
|
elif t.startswith("Vector"):
|
||||||
return "List of " + get_docstring_arg_type(t.split("<")[1][:-1], is_list=True)
|
return "List of " + get_docstring_arg_type(t.split("<", 1)[1][:-1], True, is_pyrogram_type)
|
||||||
else:
|
else:
|
||||||
if is_pyrogram_type:
|
if is_pyrogram_type:
|
||||||
t = "pyrogram." + t
|
t = "pyrogram." + t
|
||||||
@ -274,7 +274,7 @@ def start():
|
|||||||
) if c.args else "pass"
|
) if c.args else "pass"
|
||||||
|
|
||||||
docstring_args = []
|
docstring_args = []
|
||||||
docs = c.docs.split("|")[1:] if c.docs else None
|
# docs = c.docs.split("|")[1:] if c.docs else None
|
||||||
|
|
||||||
for i, arg in enumerate(sorted_args):
|
for i, arg in enumerate(sorted_args):
|
||||||
arg_name, arg_type = arg
|
arg_name, arg_type = arg
|
||||||
|
Loading…
Reference in New Issue
Block a user