No need to inherit from object in Python 3

This commit is contained in:
Dimitri Papadopoulos
2022-07-17 08:29:15 +02:00
committed by Adrien Vergé
parent 4c7b47daf3
commit ae3158cd1f
6 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ from yamllint import cli
from yamllint import config
class RunContext(object):
class RunContext:
"""Context manager for ``cli.run()`` to capture exit code and streams."""
def __init__(self, case):

View File

@@ -121,7 +121,7 @@ class SimpleConfigTestCase(unittest.TestCase):
self.assertEqual(c.rules['hyphens'], False)
def test_validate_rule_conf(self):
class Rule(object):
class Rule:
ID = 'fake'
self.assertFalse(config.validate_rule_conf(Rule, False))