don't try to split along ', '

This commit is contained in:
Keewis 2020-08-02 19:28:01 +02:00
parent 58f84186e0
commit 2a3f6e4d70

View File

@ -322,6 +322,8 @@ class DocFieldTransformer:
if typedesc.is_typed: if typedesc.is_typed:
try: try:
argtype, argname = fieldarg.split(None, 1) argtype, argname = fieldarg.split(None, 1)
if argtype.endswith(","):
raise ValueError
except ValueError: except ValueError:
pass pass
else: else: