diff options
author | Cristián Maureira-Fredes <[email protected]> | 2024-12-13 15:50:27 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <[email protected]> | 2024-12-18 10:08:10 +0100 |
commit | 382a34586f73896d12063616eb8b31474c03f68a (patch) | |
tree | c33f9c01713fe2083351beade9d9536527712814 /sources/pyside6/tests/QtWidgets | |
parent | 03a3e61b0cce28c44b68b032cff2e6b8fa869477 (diff) |
Remove unnecessary use of 'object' in class constructionremoteobjectsdev
Considering we are not compatible with Python 2 anymore,
we can drop the 'object' explicit inheritance in the class
declaration.
Pick-to: 6.8
Change-Id: Iac3a95aa9721c3ff1a755f457c0936ca157a8470
Reviewed-by: Shyamnath Premnadh <[email protected]>
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtWidgets')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_836.py | 6 | ||||
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_921.py | 2 | ||||
-rw-r--r-- | sources/pyside6/tests/QtWidgets/import_test.py | 2 | ||||
-rw-r--r-- | sources/pyside6/tests/QtWidgets/qvariant_test.py | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_836.py b/sources/pyside6/tests/QtWidgets/bug_836.py index b9d39d875..9486233e3 100644 --- a/sources/pyside6/tests/QtWidgets/bug_836.py +++ b/sources/pyside6/tests/QtWidgets/bug_836.py @@ -15,15 +15,15 @@ from PySide6.QtCore import QTimer from PySide6.QtWidgets import QApplication, QFrame -class Mixin1(object): +class Mixin1: pass -class Mixin2(object): +class Mixin2: pass -class Mixin3(object): +class Mixin3: pass diff --git a/sources/pyside6/tests/QtWidgets/bug_921.py b/sources/pyside6/tests/QtWidgets/bug_921.py index 5e9dcd05a..ef84219c4 100644 --- a/sources/pyside6/tests/QtWidgets/bug_921.py +++ b/sources/pyside6/tests/QtWidgets/bug_921.py @@ -24,7 +24,7 @@ class Signaller(QObject): s3 = Signal() -class Window(object): +class Window: def __init__(self, s): self._window = QMainWindow() diff --git a/sources/pyside6/tests/QtWidgets/import_test.py b/sources/pyside6/tests/QtWidgets/import_test.py index 0b60241f0..cb810c025 100644 --- a/sources/pyside6/tests/QtWidgets/import_test.py +++ b/sources/pyside6/tests/QtWidgets/import_test.py @@ -1,2 +1,2 @@ -class PysideImportTest2(object): +class PysideImportTest2: pass diff --git a/sources/pyside6/tests/QtWidgets/qvariant_test.py b/sources/pyside6/tests/QtWidgets/qvariant_test.py index 0e1ecc2c9..74731e914 100644 --- a/sources/pyside6/tests/QtWidgets/qvariant_test.py +++ b/sources/pyside6/tests/QtWidgets/qvariant_test.py @@ -28,7 +28,7 @@ class MyItem(QGraphicsRectItem): return value -class Sequence(object): +class Sequence: # Having the __getitem__ method on a class transform the Python # type to a PySequence. # Before the patch: aa75437f9119d997dd290471ac3e2cc88ca88bf1 |