From 7d49fd7fa28c0dec3041baf21b60134dbb41170d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 12 Sep 2019 16:15:03 +0200 Subject: [PATCH] Don't import type that's only used for type checking Contributes to issue CURA-6600. --- cura/Machines/Models/QualityProfilesDropDownMenuModel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py index 360efc210f..96a4ee0648 100644 --- a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py +++ b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py @@ -2,6 +2,7 @@ # Cura is released under the terms of the LGPLv3 or higher. from PyQt5.QtCore import Qt, QTimer +from typing import TYPE_CHECKING from UM.Logger import Logger from UM.Qt.ListModel import ListModel @@ -9,7 +10,9 @@ from UM.Settings.SettingFunction import SettingFunction import cura.CuraApplication # Imported this way to prevent circular dependencies. from cura.Machines.ContainerTree import ContainerTree -from cura.Machines.QualityManager import QualityGroup + +if TYPE_CHECKING: + from cura.Machines import QualityGroup #