From b0f1d8991444f5a79f995d805936b25ca5bbbcc3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 8 Jan 2018 09:27:47 +0100 Subject: [PATCH] Show string type as "str" --- compiler/api/compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/api/compiler.py b/compiler/api/compiler.py index 7e8851ac..09536c32 100644 --- a/compiler/api/compiler.py +++ b/compiler/api/compiler.py @@ -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":