summaryrefslogtreecommitdiff
path: root/tests/functional/n/name/name_styles.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/n/name/name_styles.py')
-rw-r--r--tests/functional/n/name/name_styles.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/functional/n/name/name_styles.py b/tests/functional/n/name/name_styles.py
index 86f395b52..8c71e7937 100644
--- a/tests/functional/n/name/name_styles.py
+++ b/tests/functional/n/name/name_styles.py
@@ -1,6 +1,6 @@
"""Test for the invalid-name warning."""
-# pylint: disable=useless-object-inheritance, unnecessary-pass, unnecessary-comprehension, unused-private-member, unnecessary-lambda-assignment
-from __future__ import print_function
+# pylint: disable=unnecessary-pass, unnecessary-comprehension, unused-private-member
+# pylint: disable=unnecessary-lambda-assignment
import abc
import collections
import typing
@@ -27,11 +27,11 @@ def no_nested_args(arg1, arg21, arg22):
print(arg1, arg21, arg22)
-class bad_class_name(object): # [invalid-name]
+class bad_class_name: # [invalid-name]
"""Class with a bad name."""
-class CorrectClassName(object):
+class CorrectClassName:
"""Class with a good name."""
def __init__(self):
@@ -74,7 +74,7 @@ V = [WHAT_Ever_inListComp for WHAT_Ever_inListComp in GOOD_CONST_NAME]
def class_builder():
"""Function returning a class object."""
- class EmbeddedClass(object):
+ class EmbeddedClass:
"""Useless class."""
return EmbeddedClass
@@ -99,7 +99,7 @@ def test_globals():
AlsoCorrect = 2
-class FooClass(object):
+class FooClass:
"""A test case for property names.
Since by default, the regex for attributes is the same as the one