Commit 07b70cfb authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[tests] Change super calls to parameter-less version

parent e6dd28ab
Pipeline #33292 passed with stage
in 13 minutes and 43 seconds
...@@ -91,9 +91,7 @@ class ParameterTypeTestDelegate(ParameterTypeDelegate): ...@@ -91,9 +91,7 @@ class ParameterTypeTestDelegate(ParameterTypeDelegate):
def createEditor(self, parent, options, index): def createEditor(self, parent, options, index):
"""Force commit to model on index change, otherwise testing won't work""" """Force commit to model on index change, otherwise testing won't work"""
combobox = super(ParameterTypeTestDelegate, self).createEditor( combobox = super().createEditor(parent, options, index)
parent, options, index
)
combobox.currentIndexChanged.connect(lambda: self.commitData.emit(combobox)) combobox.currentIndexChanged.connect(lambda: self.commitData.emit(combobox))
return combobox return combobox
......
...@@ -42,7 +42,7 @@ class MockAssetEditor(AbstractAssetEditor): ...@@ -42,7 +42,7 @@ class MockAssetEditor(AbstractAssetEditor):
""" """
def __init__(self, parent=None): def __init__(self, parent=None):
super(MockAssetEditor, self).__init__(AssetType.UNKNOWN, parent) super().__init__(AssetType.UNKNOWN, parent)
self.dataformat_model = None self.dataformat_model = None
self.add_field_button = QPushButton(self.tr("Add")) self.add_field_button = QPushButton(self.tr("Add"))
self.layout().addWidget(self.add_field_button) self.layout().addWidget(self.add_field_button)
......
...@@ -42,7 +42,7 @@ class ChangeWidget(QWidget): ...@@ -42,7 +42,7 @@ class ChangeWidget(QWidget):
dataChanged = pyqtSignal() dataChanged = pyqtSignal()
def __init__(self, parent=None): def __init__(self, parent=None):
super(ChangeWidget, self).__init__(parent) super().__init__(parent)
self._prefix_path = None self._prefix_path = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment