summaryrefslogtreecommitdiff
path: root/tests/functional/n/not_callable.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/n/not_callable.py')
-rw-r--r--tests/functional/n/not_callable.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional/n/not_callable.py b/tests/functional/n/not_callable.py
index bd90fc999..f781150a2 100644
--- a/tests/functional/n/not_callable.py
+++ b/tests/functional/n/not_callable.py
@@ -1,4 +1,4 @@
-# pylint: disable=missing-docstring,too-few-public-methods,wrong-import-position,useless-object-inheritance,use-dict-literal
+# pylint: disable=missing-docstring,too-few-public-methods,wrong-import-position,use-dict-literal
# pylint: disable=wrong-import-order, undefined-variable
REVISION = None
@@ -10,10 +10,10 @@ def correct():
REVISION = correct()
-class Correct(object):
+class Correct:
"""callable object"""
-class MetaCorrect(object):
+class MetaCorrect:
"""callable object"""
def __call__(self):
return self
@@ -37,7 +37,7 @@ INCORRECT = INT() # [not-callable]
class MyProperty(property):
""" test subclasses """
-class PropertyTest(object):
+class PropertyTest:
""" class """
def __init__(self):
@@ -69,7 +69,7 @@ PROP.custom() # [not-callable]
# Safe from not-callable when using properties.
-class SafeProperty(object):
+class SafeProperty:
@property
def static(self):
return staticmethod
@@ -98,7 +98,7 @@ class SafeProperty(object):
@property
def instance(self):
- class Empty(object):
+ class Empty:
def __call__(self):
return 42
return Empty()