misc,python: Run pre-commit run --all-files

Applies the `pyupgrade` hook to all files in the repo.

Change-Id: I9879c634a65c5fcaa9567c63bc5977ff97d5d3bf
This commit is contained in:
Bobby R. Bruce
2023-10-09 13:40:03 -07:00
parent 83af4525ce
commit 298119e402
188 changed files with 741 additions and 779 deletions

View File

@@ -31,7 +31,7 @@ import testlib.helper as helper
import testlib.runner as runner_mod
class TestSuite(object):
class TestSuite:
"""
An object grouping a collection of tests. It provides tags which enable
filtering during list and run selection. All tests held in the suite must
@@ -54,7 +54,7 @@ class TestSuite(object):
tags = set()
def __new__(klass, *args, **kwargs):
obj = super(TestSuite, klass).__new__(klass)
obj = super().__new__(klass)
TestSuite.collector.collect(obj)
return obj