From 36b10586238e8683604c8e92f185eb5bde381702 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 18 Apr 2018 19:47:19 +0200 Subject: [PATCH] Fix weird constructor names reported in compiled docs --- compiler/api/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 15b1ec76..676692ba 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -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} `".format( "pyrogram." if is_pyrogram_type else "", - i.lstrip("pyrogram.") + i.replace("pyrogram.", "") ) for i in t )