diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-15 02:02:21 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-03-15 02:02:21 +0900 |
commit | 4cebc4399ca2cd26080695b136703f8c050497b8 (patch) | |
tree | 07e4bce9200454c96c269a42bcfa7286c1870d8f /sphinx/domains/python.py | |
parent | 2994c125132b6beb73c51de4cc224a2b1d55f741 (diff) | |
parent | 6694981dd6939ab876b27d4e20a8128561c307ac (diff) | |
download | sphinx-git-4cebc4399ca2cd26080695b136703f8c050497b8.tar.gz |
Merge commit '6694981dd6939ab876b27d4e20a8128561c307ac'
Diffstat (limited to 'sphinx/domains/python.py')
-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 d63e5c747..62c0b1df4 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -39,7 +39,7 @@ logger = logging.getLogger(__name__) py_sig_re = re.compile( r'''^ ([\w.]*\.)? # class name(s) (\w+) \s* # thing name - (?: \((.*)\) # optional: arguments + (?: \(\s*(.*)\s*\) # optional: arguments (?:\s* -> \s* (.*))? # return annotation )? $ # and nothing more ''', re.VERBOSE) |