mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06: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
1 changed files with 7 additions and 5 deletions
|
@ -172,9 +172,11 @@ 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
|
||||
|
||||
# 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)}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue