diff --git a/cura/API/Machines.py b/cura/API/Machines.py index 13f8b3ae6f..4a5761cd9b 100644 --- a/cura/API/Machines.py +++ b/cura/API/Machines.py @@ -28,8 +28,8 @@ class Machine(): self.group_id = "" # type: str self.group_name = "" # type: str self.um_network_key = "" # type: str - self.configuration = {} # type: Dict - self.connection_types = [] # type: List + self.configuration = {} # type: Dict[str, any] + self.connection_types = [] # type: List["ConnectionType"] class Machines(QObject): @@ -58,7 +58,7 @@ class Machines(QObject): # This is the same as "group name" since we use "group" and "current machine" interchangeably. # TODO: Maybe make this "friendly name" to distinguish from "hostname"? @pyqtSlot(str) - def setCurrentMachineGroupName(self, group_name: str): + def setCurrentMachineGroupName(self, group_name: str) -> None: Logger.log("d", "Attempting to set the group name of the active machine to %s", group_name) global_stack = self._application.getGlobalContainerStack() if global_stack: diff --git a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py index 79d360cee2..fb2c6e9f35 100644 --- a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py +++ b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py @@ -280,7 +280,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin): # ensure that the connection states are refreshed. self.refreshConnections() - def _checkManualDevice(self, address: str): + def _checkManualDevice(self, address: str) -> Optional[QNetworkReply]: # Check if a UM3 family device exists at this address. # If a printer responds, it will replace the preliminary printer created above # origin=manual is for tracking back the origin of the call