mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:45:59 +08:00
Bring cast back to fix typing
This commit is contained in:
parent
83ce3f6ea6
commit
36f6bdca18
@ -79,9 +79,9 @@ class UltimakerNetworkedPrinterAction(MachineAction):
|
|||||||
|
|
||||||
## Get the network manager from the plugin.
|
## Get the network manager from the plugin.
|
||||||
@property
|
@property
|
||||||
def _networkPlugin(self) -> Optional[UM3OutputDevicePlugin]:
|
def _networkPlugin(self) -> UM3OutputDevicePlugin:
|
||||||
if not self._network_plugin:
|
if not self._network_plugin:
|
||||||
output_device_manager = CuraApplication.getInstance().getOutputDeviceManager()
|
output_device_manager = CuraApplication.getInstance().getOutputDeviceManager()
|
||||||
network_plugin = output_device_manager.getOutputDevicePlugin("UM3NetworkPrinting")
|
network_plugin = output_device_manager.getOutputDevicePlugin("UM3NetworkPrinting")
|
||||||
self._network_plugin = network_plugin
|
self._network_plugin = cast(UM3OutputDevicePlugin, network_plugin)
|
||||||
return self._network_plugin
|
return self._network_plugin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user