Fix types() function

This commit is contained in:
Bartłomiej Pluta
2019-07-10 12:59:38 +02:00
parent 9ea2202d14
commit a8e4700591

View File

@@ -61,7 +61,7 @@ def types(args, parentheses=True):
for arg in args:
if arg.type == Type.LIST:
output.append(listTypes(arg.value, []))
if arg.type == Type.MAP:
elif arg.type == Type.MAP:
output.append(mapTypes(arg.value, {}))
else:
output.append(arg.type.name.lower())