mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Bring cast back to fix typing
This commit is contained in:
parent
83ce3f6ea6
commit
36f6bdca18
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue