mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Add typings
Contributes to CL-1331
This commit is contained in:
parent
c4ca133b40
commit
c7f6351903
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue