Skip to content

Commit

Permalink
MNT: correct default type from References/Examples
Browse files Browse the repository at this point in the history
The default value was a string, if there is input these will be
filled as lists.
  • Loading branch information
tacaswell committed Oct 16, 2016
1 parent 71d2a30 commit 832d2ee
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions numpydoc/docscrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ class NumpyDocString(collections.Mapping):
'See Also': [],
'Notes': [],
'Warnings': [],
'References': '',
'Examples': '',
'References': [],
'Examples': [],
'index': {}
}

Expand Down Expand Up @@ -348,8 +348,6 @@ def _parse(self):
existing_content = self.get(section, [])
if existing_content:
existing_content += ['']
else:
existing_content = []
self[section] = existing_content + content

# string conversion routines
Expand Down

0 comments on commit 832d2ee

Please sign in to comment.