From 490e4aed4145659dab000e86269bd7a3dc686318 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 11 Sep 2018 06:48:35 -0700 Subject: Remove unnecessary object from class definitions In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary. --- sphinx/ext/autodoc/directive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sphinx/ext/autodoc/directive.py') 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): -- cgit v1.2.1