From 9d55f22ba51c18be85c470ee7576435a36a314ae Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Sun, 21 Jul 2024 12:12:05 +0000 Subject: [PATCH] docscrape: fixes from SciPy Co-authored-by: Matt Haberland --- numpydoc/docscrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpydoc/docscrape.py b/numpydoc/docscrape.py index f3b4a0ce..e804fa95 100644 --- a/numpydoc/docscrape.py +++ b/numpydoc/docscrape.py @@ -344,7 +344,7 @@ def parse_item_name(text): def _parse_index(self, section, content): """ - .. index: default + .. index:: default :refguide: something, else, and more """ @@ -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