diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py index c07bc7f66..55c00c2ec 100644 --- a/sphinx/util/docfields.py +++ b/sphinx/util/docfields.py @@ -322,6 +322,8 @@ class DocFieldTransformer: if typedesc.is_typed: try: argtype, argname = fieldarg.split(None, 1) + if argtype.endswith(","): + raise ValueError except ValueError: pass else: