summaryrefslogtreecommitdiff
path: root/tests/functional/n/not_async_context_manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/n/not_async_context_manager.py')
-rw-r--r--tests/functional/n/not_async_context_manager.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/functional/n/not_async_context_manager.py b/tests/functional/n/not_async_context_manager.py
index 138d76dfa..5fb6d6a0d 100644
--- a/tests/functional/n/not_async_context_manager.py
+++ b/tests/functional/n/not_async_context_manager.py
@@ -1,5 +1,5 @@
"""Test that an async context manager receives a proper object."""
-# pylint: disable=missing-docstring, import-error, too-few-public-methods, useless-object-inheritance
+# pylint: disable=missing-docstring, import-error, too-few-public-methods
import contextlib
from ala import Portocala
@@ -10,17 +10,17 @@ def ctx_manager():
yield
-class ContextManager(object):
+class ContextManager:
def __enter__(self):
pass
def __exit__(self, *args):
pass
-class PartialAsyncContextManager(object):
+class PartialAsyncContextManager:
def __aenter__(self):
pass
-class SecondPartialAsyncContextManager(object):
+class SecondPartialAsyncContextManager:
def __aexit__(self, *args):
pass
@@ -29,16 +29,16 @@ class UnknownBases(Portocala):
pass
-class AsyncManagerMixin(object):
+class AsyncManagerMixin:
pass
-class GoodAsyncManager(object):
+class GoodAsyncManager:
def __aenter__(self):
pass
def __aexit__(self, *args):
pass
-class InheritExit(object):
+class InheritExit:
def __aexit__(self, *args):
pass