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