We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc098c4 commit ed9f5e6Copy full SHA for ed9f5e6
numpydoc/docscrape.py
@@ -128,8 +128,8 @@ class NumpyDocString(collections.Mapping):
128
'See Also': [],
129
'Notes': [],
130
'Warnings': [],
131
- 'References': '',
132
- 'Examples': '',
+ 'References': [],
+ 'Examples': [],
133
'index': {}
134
}
135
@@ -365,8 +365,6 @@ def _parse(self):
365
existing_content = self.get(section, [])
366
if existing_content:
367
existing_content += ['']
368
- else:
369
- existing_content = []
370
self[section] = existing_content + content
371
372
def _error_location(self, msg, error=True):
0 commit comments