Skip to content

Commit 2cdd4d9

Browse files
anntzerjnothman
authored andcommitted
Clarify location of certain invalid docstrings. (#200)
Closes #115 and #123
1 parent e47b940 commit 2cdd4d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpydoc/numpydoc.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
if sphinx.__version__ < '1.0.1':
3636
raise RuntimeError("Sphinx 1.0.1 or newer is required")
3737

38-
from .docscrape_sphinx import get_doc_object, SphinxDocString
38+
from .docscrape_sphinx import get_doc_object
3939
from . import __version__
4040

4141
if sys.version_info[0] >= 3:
@@ -165,7 +165,7 @@ def mangle_signature(app, what, name, obj, options, sig, retann):
165165

166166
if not hasattr(obj, '__doc__'):
167167
return
168-
doc = SphinxDocString(pydoc.getdoc(obj))
168+
doc = get_doc_object(obj)
169169
sig = doc['Signature'] or getattr(obj, '__text_signature__', None)
170170
if sig:
171171
sig = re.sub(sixu("^[^(]*"), sixu(""), sig)

0 commit comments

Comments
 (0)