Skip to content

Commit

Permalink
docscrape: fixes from SciPy (#576)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Haberland <mdhaber@mit.edu>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
  • Loading branch information
3 people committed Jul 22, 2024
1 parent 7716617 commit 97a6026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpydoc/docscrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def parse_item_name(text):

def _parse_index(self, section, content):
"""
.. index: default
.. index:: default
:refguide: something, else, and more
"""
Expand Down Expand Up @@ -446,7 +446,7 @@ def _error_location(self, msg, error=True):
if error:
raise ValueError(msg)
else:
warn(msg)
warn(msg, stacklevel=3)

# string conversion routines

Expand Down

0 comments on commit 97a6026

Please sign in to comment.