diff options
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/domains/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 8943198f..792cffd8 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -54,7 +54,7 @@ def _pseudo_parse_arglist(signode, arglist): while argument.startswith(']'): stack.pop() argument = argument[1:].strip() - while argument.endswith(']'): + while argument.endswith(']') and not argument.endswith('[]'): ends_close += 1 argument = argument[:-1].strip() while argument.endswith('['): |