Skip to content

Commit 364d3ec

Browse files
committed
Revert: Improve codegen scripts
1 parent a984558 commit 364d3ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/api/compiler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool
6767
n = len(t) - 1
6868

6969
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
70-
":obj:`~{}.{}`".format(
70+
":obj:`{1} <{0}.{1}>`".format(
7171
"pyrogram.types" if is_pyrogram_type else "pyrogram.api.types",
7272
i.replace("pyrogram.", "")
7373
)
@@ -88,7 +88,7 @@ def get_references(t: str):
8888
n = len(t) - 1
8989

9090
t = ", ".join(
91-
":obj:`~pyrogram.api.functions.{}`".format(i)
91+
":obj:`{0} <pyrogram.api.functions.{0}>`".format(i)
9292
for i in t
9393
)
9494

0 commit comments

Comments
 (0)