mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use modern python typing
CURA-9278
This commit is contained in:
parent
96bc5ed602
commit
8d9e9a9dbf
2 changed files with 5 additions and 5 deletions
|
@ -13,9 +13,9 @@ class ExtruderConfigurationModel(QObject):
|
|||
|
||||
def __init__(self, position: int = -1) -> None:
|
||||
super().__init__()
|
||||
self._position = position # type: int
|
||||
self._material = None # type: Optional[MaterialOutputModel]
|
||||
self._hotend_id = None # type: Optional[str]
|
||||
self._position: int = position
|
||||
self._material: Optional[MaterialOutputModel] = None
|
||||
self._hotend_id: Optional[str] = None
|
||||
|
||||
def setPosition(self, position: int) -> None:
|
||||
self._position = position
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue