1 parent a984558 commit 364d3ecCopy full SHA for 364d3ec
1 file changed
compiler/api/compiler.py
@@ -67,7 +67,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool
67
n = len(t) - 1
68
69
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
70
- ":obj:`~{}.{}`".format(
+ ":obj:`{1} <{0}.{1}>`".format(
71
"pyrogram.types" if is_pyrogram_type else "pyrogram.api.types",
72
i.replace("pyrogram.", "")
73
)
@@ -88,7 +88,7 @@ def get_references(t: str):
88
89
90
t = ", ".join(
91
- ":obj:`~pyrogram.api.functions.{}`".format(i)
+ ":obj:`{0} <pyrogram.api.functions.{0}>`".format(i)
92
for i in t
93
94
0 commit comments