summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/directive.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-09-11 06:48:35 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2018-09-11 07:07:01 -0700
commit490e4aed4145659dab000e86269bd7a3dc686318 (patch)
tree87b32f22ae1ff41b03877a68bbb8ab4f1c2c9ab7 /sphinx/ext/autodoc/directive.py
parent844a3a5c226ff8891a1ce139f10ac92157c75da5 (diff)
downloadsphinx-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/ext/autodoc/directive.py')
-rw-r--r--sphinx/ext/autodoc/directive.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py
index 3a3434fc8..e831cab64 100644
--- a/sphinx/ext/autodoc/directive.py
+++ b/sphinx/ext/autodoc/directive.py
@@ -34,7 +34,7 @@ AUTODOC_DEFAULT_OPTIONS = ['members', 'undoc-members', 'inherited-members',
'ignore-module-all', 'exclude-members']
-class DummyOptionSpec(object):
+class DummyOptionSpec:
"""An option_spec allows any options."""
def __getitem__(self, key):
@@ -42,7 +42,7 @@ class DummyOptionSpec(object):
return lambda x: x
-class DocumenterBridge(object):
+class DocumenterBridge:
"""A parameters container for Documenters."""
def __init__(self, env, reporter, options, lineno):