mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Better typing
CURA-8849
This commit is contained in:
parent
6f8470167f
commit
f9dda40409
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
from typing import OrderedDict
|
from typing import OrderedDict, Optional
|
||||||
|
|
||||||
from PyQt6.QtCore import Qt, QTimer
|
from PyQt6.QtCore import Qt, QTimer, QObject
|
||||||
|
|
||||||
import cura
|
import cura
|
||||||
from UM import i18nCatalog
|
from UM import i18nCatalog
|
||||||
|
@ -25,7 +25,7 @@ class IntentSelectionModel(ListModel):
|
||||||
DescriptionRole = Qt.ItemDataRole.UserRole + 4
|
DescriptionRole = Qt.ItemDataRole.UserRole + 4
|
||||||
IconRole = Qt.ItemDataRole.UserRole + 5
|
IconRole = Qt.ItemDataRole.UserRole + 5
|
||||||
|
|
||||||
def __init__(self, parent = None) -> None:
|
def __init__(self, parent: Optional[QObject] = None) -> None:
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
|
|
||||||
self.addRoleName(self.NameRole, "name")
|
self.addRoleName(self.NameRole, "name")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue