From 97a6026508e0dd5382865672e9563a72cc113bd2 Mon Sep 17 00:00:00 2001 From: Lucas Colley Date: Mon, 22 Jul 2024 11:45:02 +0100 Subject: [PATCH] docscrape: fixes from SciPy (#576) Co-authored-by: Matt Haberland Co-authored-by: Ross Barnowski --- numpydoc/docscrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpydoc/docscrape.py b/numpydoc/docscrape.py index aa13217e..bfc2840e 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