Skip to content

Commit

Permalink
Expand ExtractTree type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Apr 16, 2023
1 parent b851bae commit 3d1460a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vorta/views/extract_dialog.py
Expand Up @@ -378,7 +378,7 @@ def headerData(
self,
section: int,
orientation: Qt.Orientation,
role: int = Qt.ItemDataRole.DisplayRole,
role: int | Qt.ItemDataRole = Qt.ItemDataRole.DisplayRole,
):
"""
Get the data for the given role and section in the given header.
Expand Down Expand Up @@ -414,7 +414,7 @@ def headerData(

return None

def data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole):
def data(self, index: QModelIndex, role: int | Qt.ItemDataRole = Qt.ItemDataRole.DisplayRole):
"""
Get the data for the given role and index.
Expand Down Expand Up @@ -532,7 +532,7 @@ def data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole):
if role == Qt.ItemDataRole.CheckStateRole and column == 0:
return item.data.checkstate

def setData(self, index: QModelIndex, value: Qt.CheckState, role: int = Qt.ItemDataRole.DisplayRole) -> bool:
def setData(self, index: QModelIndex, value: Qt.CheckState, role: int | Qt.ItemDataRole) -> bool:
"""
Sets the role data for the item at index to value.
Expand Down

0 comments on commit 3d1460a

Please sign in to comment.