mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Fix plugins import in CuraApplication
CURA-5543 Only import types for type checking when TYPE_CHECKING is true.
This commit is contained in:
parent
4f1b2d51cc
commit
e87f3d7ca9
1 changed files with 4 additions and 1 deletions
|
@ -84,7 +84,6 @@ from cura.Settings.SettingInheritanceManager import SettingInheritanceManager
|
|||
from cura.Settings.SimpleModeSettingsManager import SimpleModeSettingsManager
|
||||
|
||||
from cura.Machines.VariantManager import VariantManager
|
||||
from plugins.SliceInfoPlugin.SliceInfo import SliceInfo
|
||||
|
||||
from .SingleInstance import SingleInstance
|
||||
from .AutoSave import AutoSave
|
||||
|
@ -110,6 +109,10 @@ from cura.ObjectsModel import ObjectsModel
|
|||
from UM.FlameProfiler import pyqtSlot
|
||||
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from plugins.SliceInfoPlugin.SliceInfo import SliceInfo
|
||||
|
||||
|
||||
numpy.seterr(all = "ignore")
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue