mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Show string type as "str"
This commit is contained in:
parent
edbca87d36
commit
b0f1d89914
@ -43,6 +43,8 @@ def get_docstring_arg_type(t: str, is_list: bool = False):
|
||||
return ":obj:`int`"
|
||||
elif t == "double":
|
||||
return ":obj:`float`"
|
||||
elif t == "string":
|
||||
return ":obj:`str`"
|
||||
else:
|
||||
return ":obj:`{}`".format(t.lower())
|
||||
elif t == "true":
|
||||
|
Loading…
Reference in New Issue
Block a user