arg_type to arg_types that can not be None
@@ -74,9 +74,8 @@ class JsonDocBuilder(object):
default = arg['default']
if default is not None:
spec.defaults[name] = default
- arg_type = arg['types']
- if arg_type is not None:
+ arg_types = arg['types']
if not spec.types:
spec.types = {}
- spec.types[name] = tuple(arg_type)
+ spec.types[name] = tuple(arg_types)
return spec
