mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
don't try to split along ', '
This commit is contained in:
parent
58f84186e0
commit
2a3f6e4d70
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user