diff --git a/plugins/VersionUpgrade/VersionUpgrade54to55/VersionUpgrade54to55.py b/plugins/VersionUpgrade/VersionUpgrade54to55/VersionUpgrade54to55.py index d1a85d49bd..e5a79e74af 100644 --- a/plugins/VersionUpgrade/VersionUpgrade54to55/VersionUpgrade54to55.py +++ b/plugins/VersionUpgrade/VersionUpgrade54to55/VersionUpgrade54to55.py @@ -25,11 +25,9 @@ class VersionUpgrade54to55(VersionUpgrade): return False @staticmethod - def _isBrandedMaterialID(material_id): + def _isBrandedMaterialID(material_id: str) -> bool: return material_id.startswith("ultimaker_") - - @staticmethod def upgradeStack(serialized: str, filename: str) -> Tuple[List[str], List[str]]: """ @@ -57,11 +55,11 @@ class VersionUpgrade54to55(VersionUpgrade): # We have an Ultimaker branded material ID, so we should change the intent & quality! quality_id = VersionUpgrade54to55.profile_regex.sub( - "um_\g_\g\g_um-\g_\g", quality_id) + r"um_\g_\g\g_um-\g_\g", quality_id) intent_id = VersionUpgrade54to55.profile_regex.sub( - "um_\g_\g\g_um-\g_\g", intent_id) + r"um_\g_\g\g_um-\g_\g", intent_id) parser["containers"]["3"] = quality_id parser["containers"]["2"] = intent_id