Skip to content

Commit a6911fe

Browse files
committed
STY: Keep line length < 80 for some regexes.
1 parent 1670bbb commit a6911fe

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

numpydoc/docscrape.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -243,16 +243,16 @@ def _parse_param_list(self, content):
243243
_funcnamenext = _funcname.replace('role', 'rolenext').replace('name', 'namenext')
244244
_description = r"(?P<description>\s*:(\s+(?P<desc>\S+.*))?)?\s*$"
245245
_func_rgx = re.compile(r"^\s*" + _funcname + r"\s*", re.X)
246-
# _funcs_rgx = re.compile(r"^\s*" + _funcname + r"(?P<morefuncs>([,\s]\s*" + _funcnamenext + r")*)" + r"\s*", re.X)
247-
_line_rgx = re.compile(r"^\s*"
248-
+ r"(?P<allfuncs>" # group for all function names
249-
+ _funcname
250-
+ r"(?P<morefuncs>([,]\s+"
251-
+ _funcnamenext + r")*)"
252-
+ r")" # end of "allfuncs"
253-
+ r"(\s*,)?" # Some function lists have a trailing comma
254-
+ _description,
255-
re.X)
246+
_line_rgx = re.compile(
247+
r"^\s*"
248+
+ r"(?P<allfuncs>" # group for all function names
249+
+ _funcname
250+
+ r"(?P<morefuncs>([,]\s+"
251+
+ _funcnamenext + r")*)"
252+
+ r")" # end of "allfuncs"
253+
+ r"(\s*,)?" # Some function lists have a trailing comma
254+
+ _description,
255+
re.X)
256256

257257
_name_rgx = re.compile(r"^\s*(:(?P<role>\w+):"
258258
r"`(?P<name>(?:~\w+\.)?[a-zA-Z0-9_.-]+)`|"

0 commit comments

Comments
 (0)