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. --- tests/py35/test_autodoc_py35.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/py35/test_autodoc_py35.py') diff --git a/tests/py35/test_autodoc_py35.py b/tests/py35/test_autodoc_py35.py index 5064970e6..39df5fcf4 100644 --- a/tests/py35/test_autodoc_py35.py +++ b/tests/py35/test_autodoc_py35.py @@ -247,7 +247,7 @@ class CustomEx(Exception): """Exception method.""" -class CustomDataDescriptor(object): +class CustomDataDescriptor: """Descriptor class docstring.""" def __init__(self, doc): @@ -275,7 +275,7 @@ def _funky_classmethod(name, b, c, d, docstring=None): return classmethod(function) -class Base(object): +class Base: def inheritedmeth(self): """Inherited function.""" -- cgit v1.2.1