mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 00:56:19 +00:00
Revert: Improve codegen scripts
This commit is contained in:
parent
a984558860
commit
364d3ec145
@ -67,7 +67,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool
|
|||||||
n = len(t) - 1
|
n = len(t) - 1
|
||||||
|
|
||||||
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
|
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
|
||||||
":obj:`~{}.{}`".format(
|
":obj:`{1} <{0}.{1}>`".format(
|
||||||
"pyrogram.types" if is_pyrogram_type else "pyrogram.api.types",
|
"pyrogram.types" if is_pyrogram_type else "pyrogram.api.types",
|
||||||
i.replace("pyrogram.", "")
|
i.replace("pyrogram.", "")
|
||||||
)
|
)
|
||||||
@ -88,7 +88,7 @@ def get_references(t: str):
|
|||||||
n = len(t) - 1
|
n = len(t) - 1
|
||||||
|
|
||||||
t = ", ".join(
|
t = ", ".join(
|
||||||
":obj:`~pyrogram.api.functions.{}`".format(i)
|
":obj:`{0} <pyrogram.api.functions.{0}>`".format(i)
|
||||||
for i in t
|
for i in t
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user