Skip to content

Commit

Permalink
style: Change override order to match pyside6 6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
henryborchers committed Nov 25, 2024
1 parent 36db6fb commit 2348b8b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions speedwagon/frontend/qtwidgets/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,16 +614,16 @@ def data(
item = typing.cast(WorkflowSettingsRoot, self.get_item(index))
return item.data_column(index.column(), role)

@typing.overload
def parent(self) -> QtCore.QObject:
...

@typing.overload
def parent(
self, child: Union[QtCore.QModelIndex, QtCore.QPersistentModelIndex]
) -> QtCore.QModelIndex:
...

@typing.overload
def parent(self) -> QtCore.QObject:
...

def parent(
self,
child: Union[
Expand Down
16 changes: 8 additions & 8 deletions speedwagon/frontend/qtwidgets/models/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ def index(
return self.createIndex(row, column, child_item)
return QtCore.QModelIndex()

@overload
def parent(self) -> QtCore.QObject:
...

@overload
def parent(
self, child: Union[QtCore.QModelIndex, QtCore.QPersistentModelIndex]
) -> QtCore.QModelIndex:
...

@overload
def parent(self) -> QtCore.QObject:
...

def parent(
self,
child: Union[
Expand Down Expand Up @@ -433,16 +433,16 @@ def mapToSource( # pylint: disable=invalid-name
parent=base_index,
)

@overload
def parent(self) -> QtCore.QObject:
...

@overload
def parent(
self, index: Union[QtCore.QModelIndex, QtCore.QPersistentModelIndex]
) -> QtCore.QModelIndex:
...

@overload
def parent(self) -> QtCore.QObject:
...

def parent(
self,
index: Union[
Expand Down
8 changes: 4 additions & 4 deletions speedwagon/frontend/qtwidgets/models/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,16 @@ def mapToSource( # pylint: disable=invalid-name
parent=source_model.index(self._tab_index, 0),
)

@overload
def parent(self) -> QtCore.QObject:
...

@overload
def parent(
self, index: Union[QtCore.QModelIndex, QtCore.QPersistentModelIndex]
) -> QtCore.QModelIndex:
...

@overload
def parent(self) -> QtCore.QObject:
...

def parent(
self,
index: Union[
Expand Down

0 comments on commit 2348b8b

Please sign in to comment.