mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 14:54:51 +00:00
Revert: Improve codegen scripts
This commit is contained in:
parent
a984558860
commit
364d3ec145
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue