Small code improvements

This commit is contained in:
ChrisTerBeke 2019-07-29 21:58:29 +02:00
parent f34fc7e6f9
commit fa5b083b74
9 changed files with 15 additions and 8 deletions

View file

@ -1,4 +1,5 @@
## Base model that maps kwargs to instance attributes.
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from datetime import datetime, timezone
from typing import TypeVar, Dict, List, Any, Type, Union

View file

@ -1,4 +1,5 @@
## Class representing a material that was fetched from the cluster API.
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from .BaseModel import BaseModel

View file

@ -1,3 +1,5 @@
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Optional
from UM.Logger import Logger

View file

@ -1,4 +1,5 @@
## Class representing a local material that was fetched from the container registry.
# Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from .BaseModel import BaseModel

View file

@ -15,7 +15,7 @@ class UM3PrintJobOutputModel(PrintJobOutputModel):
def __init__(self, output_controller: PrinterOutputController, key: str = "", name: str = "", parent=None) -> None:
super().__init__(output_controller, key, name, parent)
self._configuration_changes = [] # type: List[ConfigurationChangeModel]
self._configuration_changes = [] # type: List[ConfigurationChangeModel]
@pyqtProperty("QVariantList", notify=configurationChangesChanged)
def configurationChanges(self) -> List[ConfigurationChangeModel]: