diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-28 01:57:48 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-11-28 01:58:32 +0900 |
commit | 31c4d06a22e92d28f94200063a3921b688e330c2 (patch) | |
tree | 21777fb0c6c102a0533eab65d40e700e79ea0c4e /sphinx/domains/python.py | |
parent | c76885631ddf9edbf4e6edcc37ebc29e3e583627 (diff) | |
download | sphinx-git-31c4d06a22e92d28f94200063a3921b688e330c2.tar.gz |
refactor: Use super() to call methods of superclass
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r-- | sphinx/domains/python.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py index 8320f83de..6769bafad 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -559,7 +559,7 @@ class PyDecoratorFunction(PyDecoratorMixin, PyModulelevel): # type: () -> List[nodes.Node] # a decorator function is a function after all self.name = 'py:function' - return PyModulelevel.run(self) + return super(PyDecoratorFunction, self).run() class PyDecoratorMethod(PyDecoratorMixin, PyClassmember): @@ -569,7 +569,7 @@ class PyDecoratorMethod(PyDecoratorMixin, PyClassmember): def run(self): # type: () -> List[nodes.Node] self.name = 'py:method' - return PyClassmember.run(self) + return super(PyDecoratorMethod, self).run() class PyModule(SphinxDirective): |