We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e60b8 commit cb9c29dCopy full SHA for cb9c29d
numpydoc/docscrape.py
@@ -327,7 +327,7 @@ def _parse(self):
327
if not section.startswith('..'):
328
section = (s.capitalize() for s in section.split(' '))
329
section = ' '.join(section)
330
- if self[section]:
+ if self.get(section):
331
msg = ("The section %s appears twice in the docstring." %
332
section)
333
raise ValueError(msg)
0 commit comments