Skip to content

Commit 6d7eaf7

Browse files
authored
MAINT: use super() as described by PEP 3135 (#315)
1 parent 5ca63a7 commit 6d7eaf7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

numpydoc/docscrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def __str__(self):
585585
out += '.. %s:: %s\n \n\n' % (roles.get(self._role, ''),
586586
func_name)
587587

588-
out += super(FunctionDoc, self).__str__(func_role=self._role)
588+
out += super().__str__(func_role=self._role)
589589
return out
590590

591591

numpydoc/docscrape_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _str_section(self, name):
295295
def _str_see_also(self, func_role):
296296
out = []
297297
if self['See Also']:
298-
see_also = super(SphinxDocString, self)._str_see_also(func_role)
298+
see_also = super()._str_see_also(func_role)
299299
out = ['.. seealso::', '']
300300
out += self._str_indent(see_also[2:])
301301
return out

numpydoc/numpydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class ManglingDomainBase(object):
344344
directive_mangling_map = {}
345345

346346
def __init__(self, *a, **kw):
347-
super(ManglingDomainBase, self).__init__(*a, **kw)
347+
super().__init__(*a, **kw)
348348
self.wrap_mangling_directives()
349349

350350
def wrap_mangling_directives(self):

0 commit comments

Comments
 (0)