mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
autosummary: fix typo in a regexp
This commit is contained in:
parent
fd64879146
commit
676409133a
@ -293,7 +293,7 @@ class Autosummary(Directive):
|
|||||||
def mangle_signature(sig, max_chars=30):
|
def mangle_signature(sig, max_chars=30):
|
||||||
"""Reformat a function signature to a more compact form."""
|
"""Reformat a function signature to a more compact form."""
|
||||||
sig = re.sub(r"^\((.*)\)$", r"\1", sig) + ", "
|
sig = re.sub(r"^\((.*)\)$", r"\1", sig) + ", "
|
||||||
r = re.compile(r"(?P<name>[a-zA_Z0-9_*]+)(?P<default>=.*?)?, ")
|
r = re.compile(r"(?P<name>[a-zA-Z0-9_*]+)(?P<default>=.*?)?, ")
|
||||||
items = r.findall(sig)
|
items = r.findall(sig)
|
||||||
|
|
||||||
args = []
|
args = []
|
||||||
|
Loading…
Reference in New Issue
Block a user