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 Nov 2, 2017
1 parent fc098c4 commit ed9f5e6
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 @@ -128,8 +128,8 @@ class NumpyDocString(collections.Mapping):
'See Also': [],
'Notes': [],
'Warnings': [],
'References': '',
'Examples': '',
'References': [],
'Examples': [],
'index': {}
}

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

def _error_location(self, msg, error=True):
Expand Down

0 comments on commit ed9f5e6

Please sign in to comment.