Skip to content

Commit 86d18ee

Browse files
authored
Merge pull request #237 from X-DataInitiative/numpy_scrapedoc
#236 numpydoc 0.8.0 import changes for docscrape
2 parents 3981b27 + c2df93f commit 86d18ee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy
2-
numpydoc==0.7.0
2+
numpydoc
33
scipy
44
matplotlib
55
scikit-learn

tick/base/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import json
99
import pydoc
1010
import numpydoc as nd
11+
from numpydoc import docscrape
1112
import copy
1213

1314
# The metaclass inherits from ABCMeta and not type, since we'd like to
@@ -257,7 +258,7 @@ def find_documented_attributes(class_name, attrs):
257258
return []
258259

259260
current_class_doc = inspect.cleandoc(attrs['__doc__'])
260-
parsed_doc = nd.docscrape.ClassDoc(None, doc=current_class_doc)
261+
parsed_doc = docscrape.ClassDoc(None, doc=current_class_doc)
261262
attr_docs = parsed_doc['Parameters'] + parsed_doc['Attributes'] + \
262263
parsed_doc['Other Parameters']
263264

0 commit comments

Comments
 (0)