diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 06:48:35 -0700 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-11 07:07:01 -0700 |
| commit | 490e4aed4145659dab000e86269bd7a3dc686318 (patch) | |
| tree | 87b32f22ae1ff41b03877a68bbb8ab4f1c2c9ab7 /sphinx/domains/python.py | |
| parent | 844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff) | |
| download | sphinx-git-490e4aed4145659dab000e86269bd7a3dc686318.tar.gz | |
Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
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 fe9bb9090..5f822aeca 100644 --- a/sphinx/domains/python.py +++ b/sphinx/domains/python.py @@ -114,7 +114,7 @@ def _pseudo_parse_arglist(signode, arglist): # This override allows our inline type specifiers to behave like :class: link # when it comes to handling "." and "~" prefixes. -class PyXrefMixin(object): +class PyXrefMixin: def make_xref(self, rolename, # type: unicode domain, # type: unicode @@ -536,7 +536,7 @@ class PyClassmember(PyObject): return '' -class PyDecoratorMixin(object): +class PyDecoratorMixin: """ Mixin for decorator directives. """ |
