mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix mypy issues
CURA-7418
This commit is contained in:
parent
f6e9bc7c3c
commit
c58ef1b531
@ -264,7 +264,7 @@ class CuraApplication(QtApplication):
|
|||||||
|
|
||||||
@pyqtProperty(str, constant=True)
|
@pyqtProperty(str, constant=True)
|
||||||
def ultimakerDigitalFactoryUrl(self) -> str:
|
def ultimakerDigitalFactoryUrl(self) -> str:
|
||||||
return UltimakerCloudAuthentication.CuraDigitalFactoryURL
|
return UltimakerCloudConstants.CuraDigitalFactoryURL
|
||||||
|
|
||||||
def addCommandLineOptions(self):
|
def addCommandLineOptions(self):
|
||||||
"""Adds command line options to the command line parser.
|
"""Adds command line options to the command line parser.
|
||||||
|
@ -35,7 +35,7 @@ except ImportError:
|
|||||||
CuraCloudAccountAPIRoot = DEFAULT_CLOUD_ACCOUNT_API_ROOT
|
CuraCloudAccountAPIRoot = DEFAULT_CLOUD_ACCOUNT_API_ROOT
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from cura.CuraVersion import CuraDigitalFactoryURL
|
from cura.CuraVersion import CuraDigitalFactoryURL # type: ignore
|
||||||
if CuraDigitalFactoryURL == "":
|
if CuraDigitalFactoryURL == "":
|
||||||
CuraDigitalFactoryURL = DEFAULT_DIGITAL_FACTORY_URL
|
CuraDigitalFactoryURL = DEFAULT_DIGITAL_FACTORY_URL
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user