diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-13 15:50:27 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-12-18 10:08:10 +0100 |
commit | 382a34586f73896d12063616eb8b31474c03f68a (patch) | |
tree | c33f9c01713fe2083351beade9d9536527712814 /sources/pyside6/tests/pysidetest/multiple_inheritance_test.py | |
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 <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/tests/pysidetest/multiple_inheritance_test.py')
-rw-r--r-- | sources/pyside6/tests/pysidetest/multiple_inheritance_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py b/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py index a9808cfa3..fee2eea8d 100644 --- a/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py +++ b/sources/pyside6/tests/pysidetest/multiple_inheritance_test.py @@ -22,7 +22,7 @@ def xprint(*args, **kw): # This is the original testcase of PYSIDE-1564 -class Age(object): +class Age: def __init__(self, age=0, **kwds): super().__init__(**kwds) @@ -117,7 +117,7 @@ class II(G, H, QtWidgets.QLabel): # PYSIDE-2294: Friedemann's test adapted. # We need to ignore positional args in mixin classes. -class Ui_X_MainWindow(object): # Emulating uic +class Ui_X_MainWindow: # Emulating uic def setupUi(self, MainWindow): MainWindow.resize(400, 300) self.lbl = QLabel(self) @@ -160,7 +160,7 @@ class AdditionalMultipleInheritanceTest(UsesQApplication): # PYSIDE-2654: Additional missing init test. # This must work if no __init__ is defined (Ui_Form) -class Ui_Form(object): +class Ui_Form: pass |