summaryrefslogtreecommitdiff
path: root/tests/roots/test-root/autodoc_target.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-10-17 15:54:59 +0100
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2022-10-17 22:39:09 +0100
commit920828fe351b9e542206749e2ddf04a2cd17a6f3 (patch)
treeb3243d53e128a1fa5b40247b98b0c987ea5adbaf /tests/roots/test-root/autodoc_target.py
parentb277abcb49d2c6d248518ea30a179cb52175d600 (diff)
downloadsphinx-git-920828fe351b9e542206749e2ddf04a2cd17a6f3.tar.gz
Run the ``pyupgrade`` tool
Diffstat (limited to 'tests/roots/test-root/autodoc_target.py')
-rw-r--r--tests/roots/test-root/autodoc_target.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/roots/test-root/autodoc_target.py b/tests/roots/test-root/autodoc_target.py
index a49ffc1ff..59f6c74d6 100644
--- a/tests/roots/test-root/autodoc_target.py
+++ b/tests/roots/test-root/autodoc_target.py
@@ -19,7 +19,7 @@ class CustomEx(Exception):
"""Exception method."""
-class CustomDataDescriptor(object):
+class CustomDataDescriptor:
"""Descriptor class docstring."""
def __init__(self, doc):
@@ -56,7 +56,7 @@ def _funky_classmethod(name, b, c, d, docstring=None):
return classmethod(function)
-class Base(object):
+class Base:
def inheritedmeth(self):
"""Inherited function."""
@@ -136,10 +136,10 @@ def function(foo, *args, **kwds):
pass
-class Outer(object):
+class Outer:
"""Foo"""
- class Inner(object):
+ class Inner:
"""Foo"""
def meth(self):
@@ -149,7 +149,7 @@ class Outer(object):
factory = dict
-class DocstringSig(object):
+class DocstringSig:
def meth(self):
"""meth(FOO, BAR=1) -> BAZ
First line of docstring
@@ -184,12 +184,12 @@ class StrRepr(str):
return self
-class AttCls(object):
+class AttCls:
a1 = StrRepr('hello\nworld')
a2 = None
-class InstAttCls(object):
+class InstAttCls:
"""Class with documented class and instance attributes."""
#: Doc comment for class attribute InstAttCls.ca1.