mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Show string type as "str"
This commit is contained in:
parent
edbca87d36
commit
b0f1d89914
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,8 @@ def get_docstring_arg_type(t: str, is_list: bool = False):
|
||||||
return ":obj:`int`"
|
return ":obj:`int`"
|
||||||
elif t == "double":
|
elif t == "double":
|
||||||
return ":obj:`float`"
|
return ":obj:`float`"
|
||||||
|
elif t == "string":
|
||||||
|
return ":obj:`str`"
|
||||||
else:
|
else:
|
||||||
return ":obj:`{}`".format(t.lower())
|
return ":obj:`{}`".format(t.lower())
|
||||||
elif t == "true":
|
elif t == "true":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue