From 36f6bdca18ba80fbad49b9a507484c4f561d4c6a Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Thu, 15 Aug 2019 14:36:25 +0200 Subject: [PATCH] Bring cast back to fix typing --- .../UM3NetworkPrinting/src/UltimakerNetworkedPrinterAction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/UltimakerNetworkedPrinterAction.py b/plugins/UM3NetworkPrinting/src/UltimakerNetworkedPrinterAction.py index f179f7a7d9..8c5f5c12ea 100644 --- a/plugins/UM3NetworkPrinting/src/UltimakerNetworkedPrinterAction.py +++ b/plugins/UM3NetworkPrinting/src/UltimakerNetworkedPrinterAction.py @@ -79,9 +79,9 @@ class UltimakerNetworkedPrinterAction(MachineAction): ## Get the network manager from the plugin. @property - def _networkPlugin(self) -> Optional[UM3OutputDevicePlugin]: + def _networkPlugin(self) -> UM3OutputDevicePlugin: if not self._network_plugin: output_device_manager = CuraApplication.getInstance().getOutputDeviceManager() network_plugin = output_device_manager.getOutputDevicePlugin("UM3NetworkPrinting") - self._network_plugin = network_plugin + self._network_plugin = cast(UM3OutputDevicePlugin, network_plugin) return self._network_plugin