Skip to content

Commit

Permalink
Don't pass maxsplit as positional arg (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock authored Dec 17, 2024
1 parent 99786ec commit d03b31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpydoc/docscrape_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _process_param(self, param, desc, fake_autosummary):
display_param = f":obj:`{param} <{link_prefix}{param}>`"
if obj_doc:
# Overwrite desc. Take summary logic of autosummary
desc = re.split(r"\n\s*\n", obj_doc.strip(), 1)[0]
desc = re.split(r"\n\s*\n", obj_doc.strip(), maxsplit=1)[0]
# XXX: Should this have DOTALL?
# It does not in autosummary
m = re.search(r"^([A-Z].*?\.)(?:\s|$)", " ".join(desc.split()))
Expand Down

0 comments on commit d03b31c

Please sign in to comment.