mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Add explicit typing
This commit is contained in:
parent
718d3790e2
commit
b689a84bcb
@ -378,7 +378,7 @@ class CloudOutputDeviceManager:
|
|||||||
local_network_key = active_machine.getMetaDataEntry(self.META_NETWORK_KEY)
|
local_network_key = active_machine.getMetaDataEntry(self.META_NETWORK_KEY)
|
||||||
|
|
||||||
# Copy of the device list, to prevent modifying the list while iterating, if a device gets added asynchronously.
|
# Copy of the device list, to prevent modifying the list while iterating, if a device gets added asynchronously.
|
||||||
remote_cluster_copy = list(self._remote_clusters.values())
|
remote_cluster_copy: List[CloudOutputDevice] = list(self._remote_clusters.values())
|
||||||
for device in remote_cluster_copy:
|
for device in remote_cluster_copy:
|
||||||
if device.key == stored_cluster_id:
|
if device.key == stored_cluster_id:
|
||||||
# Connect to it if the stored ID matches.
|
# Connect to it if the stored ID matches.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user