mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix weird constructor names reported in compiled docs
This commit is contained in:
parent
dd6f6e1b35
commit
36b1058623
@ -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(
|
t = (("e" if is_list else "E") + "ither " if n else "") + ", ".join(
|
||||||
":obj:`{1} <pyrogram.api.types.{0}{1}>`".format(
|
":obj:`{1} <pyrogram.api.types.{0}{1}>`".format(
|
||||||
"pyrogram." if is_pyrogram_type else "",
|
"pyrogram." if is_pyrogram_type else "",
|
||||||
i.lstrip("pyrogram.")
|
i.replace("pyrogram.", "")
|
||||||
)
|
)
|
||||||
for i in t
|
for i in t
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user