mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:15:54 +08:00
Add more typing & documentation
Even more boyscouting. This code seems to be far too complex for what it should be... CURA-8463
This commit is contained in:
parent
21b8f083f2
commit
30bc0d04bf
@ -172,12 +172,14 @@ class CloudOutputDeviceManager:
|
||||
May take a long time to complete. This currently forcefully calls the "processEvents", which isn't
|
||||
the nicest solution out there. We might need to consider moving this into a job later!
|
||||
"""
|
||||
new_devices = []
|
||||
new_devices: List[CloudOutputDevice] = []
|
||||
remote_clusters_added = False
|
||||
host_guid_map = {machine.getMetaDataEntry(self.META_HOST_GUID): device_cluster_id
|
||||
for device_cluster_id, machine in self._um_cloud_printers.items()
|
||||
if machine.getMetaDataEntry(self.META_HOST_GUID)}
|
||||
|
||||
|
||||
# Create a map that maps the HOST_GUID to the DEVICE_CLUSTER_ID
|
||||
host_guid_map: Dict[str, str] = {machine.getMetaDataEntry(self.META_HOST_GUID): device_cluster_id
|
||||
for device_cluster_id, machine in self._um_cloud_printers.items()
|
||||
if machine.getMetaDataEntry(self.META_HOST_GUID)}
|
||||
|
||||
machine_manager = CuraApplication.getInstance().getMachineManager()
|
||||
|
||||
for cluster_data in clusters:
|
||||
|
Loading…
x
Reference in New Issue
Block a user