mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 06:08:58 +08:00
Fix typing
CURA-6255
This commit is contained in:
parent
9aa5c3cd24
commit
0eea73d2a9
@ -88,7 +88,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
|
|||||||
self._firmware_name_requested = False
|
self._firmware_name_requested = False
|
||||||
self._firmware_updater = AvrFirmwareUpdater(self)
|
self._firmware_updater = AvrFirmwareUpdater(self)
|
||||||
|
|
||||||
plugin_path = PluginRegistry.getInstance().getPluginPath("USBPrinting")
|
plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath("USBPrinting"))
|
||||||
self._monitor_view_qml_path = os.path.join(plugin_path, "MonitorItem.qml")
|
self._monitor_view_qml_path = os.path.join(plugin_path, "MonitorItem.qml")
|
||||||
|
|
||||||
CuraApplication.getInstance().getOnExitCallbackManager().addCallback(self._checkActivePrintingUponAppExit)
|
CuraApplication.getInstance().getOnExitCallbackManager().addCallback(self._checkActivePrintingUponAppExit)
|
||||||
|
@ -1069,7 +1069,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||||||
# This loads the mapping from a file.
|
# This loads the mapping from a file.
|
||||||
@classmethod
|
@classmethod
|
||||||
def getProductIdMap(cls) -> Dict[str, List[str]]:
|
def getProductIdMap(cls) -> Dict[str, List[str]]:
|
||||||
plugin_path = PluginRegistry.getInstance().getPluginPath("XmlMaterialProfile")
|
plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath("XmlMaterialProfile"))
|
||||||
product_to_id_file = os.path.join(plugin_path, "product_to_id.json")
|
product_to_id_file = os.path.join(plugin_path, "product_to_id.json")
|
||||||
with open(product_to_id_file, encoding = "utf-8") as f:
|
with open(product_to_id_file, encoding = "utf-8") as f:
|
||||||
product_to_id_map = json.load(f)
|
product_to_id_map = json.load(f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user