diff --git a/numpydoc/docscrape.py b/numpydoc/docscrape.py index 62ea82ae..0fa90254 100644 --- a/numpydoc/docscrape.py +++ b/numpydoc/docscrape.py @@ -113,8 +113,8 @@ class NumpyDocString(collections.Mapping): 'See Also': [], 'Notes': [], 'Warnings': [], - 'References': '', - 'Examples': '', + 'References': [], + 'Examples': [], 'index': {} } @@ -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