Fix weird constructor names reported in compiled docs

This commit is contained in:
Dan 2018-04-18 19:47:19 +02:00
parent dd6f6e1b35
commit 36b1058623

View File

@ -69,7 +69,7 @@ def get_docstring_arg_type(t: str, is_list: bool = False, is_pyrogram_type: bool
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
":obj:`{1} <pyrogram.api.types.{0}{1}>`".format(
"pyrogram." if is_pyrogram_type else "",
i.lstrip("pyrogram.")
i.replace("pyrogram.", "")
)
for i in t
)