Show string type as "str"

This commit is contained in:
Dan 2018-01-08 09:27:47 +01:00
parent edbca87d36
commit b0f1d89914

View File

@ -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":