summaryrefslogtreecommitdiff
path: root/tests/functional/c/class_members_py30.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/c/class_members_py30.py')
-rw-r--r--tests/functional/c/class_members_py30.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/functional/c/class_members_py30.py b/tests/functional/c/class_members_py30.py
index afaee5872..0d65331f9 100644
--- a/tests/functional/c/class_members_py30.py
+++ b/tests/functional/c/class_members_py30.py
@@ -1,7 +1,7 @@
""" Various tests for class members access. """
-# pylint: disable=too-few-public-methods,import-error,missing-docstring, wrong-import-position,wrong-import-order, useless-object-inheritance, unnecessary-dunder-call
+# pylint: disable=too-few-public-methods,import-error,missing-docstring, wrong-import-position,wrong-import-order, unnecessary-dunder-call
from missing import Missing
-class MyClass(object):
+class MyClass:
"""class docstring"""
def __init__(self):
@@ -16,7 +16,7 @@ class MyClass(object):
self.nonexistent1.truc() # [no-member]
self.nonexistent2[1] = 'hehe' # [no-member]
-class XYZMixin(object):
+class XYZMixin:
"""access to undefined members should be ignored in mixin classes by
default
"""
@@ -24,14 +24,14 @@ class XYZMixin(object):
print(self.nonexistent)
-class NewClass(object):
+class NewClass:
"""use object.__setattr__"""
def __init__(self):
self.__setattr__('toto', 'tutu')
from abc import ABCMeta
-class TestMetaclass(object, metaclass=ABCMeta):
+class TestMetaclass(metaclass=ABCMeta):
""" Test attribute access for metaclasses. """
class Metaclass(type):
@@ -40,7 +40,7 @@ class Metaclass(type):
def test(cls):
""" classmethod """
-class UsingMetaclass(object, metaclass=Metaclass):
+class UsingMetaclass(metaclass=Metaclass):
""" empty """
TestMetaclass.register(int)
@@ -55,7 +55,7 @@ class NoKnownBases(Missing):
NoKnownBases().lalala()
-class MetaClass(object):
+class MetaClass:
"""Look some methods in the implicit metaclass."""
@classmethod