mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use modern python typing notation
CURA-8555
This commit is contained in:
parent
a315171d7c
commit
0d4c3fa34d
1 changed files with 9 additions and 9 deletions
|
@ -37,16 +37,16 @@ class DFFileExportAndUploadManager:
|
||||||
formats: List[str],
|
formats: List[str],
|
||||||
on_upload_error: Callable[[], Any],
|
on_upload_error: Callable[[], Any],
|
||||||
on_upload_success: Callable[[], Any],
|
on_upload_success: Callable[[], Any],
|
||||||
on_upload_finished: Callable[[], Any] ,
|
on_upload_finished: Callable[[], Any],
|
||||||
on_upload_progress: Callable[[int], Any]) -> None:
|
on_upload_progress: Callable[[int], Any]) -> None:
|
||||||
|
|
||||||
self._file_handlers = file_handlers # type: Dict[str, FileHandler]
|
self._file_handlers: Dict[str, FileHandler] = file_handlers
|
||||||
self._nodes = nodes # type: List[SceneNode]
|
self._nodes: List[SceneNode] = nodes
|
||||||
self._library_project_id = library_project_id # type: str
|
self._library_project_id: str = library_project_id
|
||||||
self._library_project_name = library_project_name # type: str
|
self._library_project_name: str = library_project_name
|
||||||
self._file_name = file_name # type: str
|
self._file_name: str = file_name
|
||||||
self._upload_jobs = [] # type: List[ExportFileJob]
|
self._upload_jobs: List[ExportFileJob] = []
|
||||||
self._formats = formats # type: List[str]
|
self._formats: List[str] = formats
|
||||||
self._api = DigitalFactoryApiClient(application = CuraApplication.getInstance(), on_error = lambda error: Logger.log("e", str(error)))
|
self._api = DigitalFactoryApiClient(application = CuraApplication.getInstance(), on_error = lambda error: Logger.log("e", str(error)))
|
||||||
|
|
||||||
# Functions of the parent class that should be called based on the upload process output
|
# Functions of the parent class that should be called based on the upload process output
|
||||||
|
@ -59,7 +59,7 @@ class DFFileExportAndUploadManager:
|
||||||
# show the success message (once both upload jobs are done)
|
# show the success message (once both upload jobs are done)
|
||||||
self._message_lock = threading.Lock()
|
self._message_lock = threading.Lock()
|
||||||
|
|
||||||
self._file_upload_job_metadata = self.initializeFileUploadJobMetadata() # type: Dict[str, Dict[str, Any]]
|
self._file_upload_job_metadata: Dict[str, Dict[str, Any]] = self.initializeFileUploadJobMetadata()
|
||||||
|
|
||||||
self.progress_message = Message(
|
self.progress_message = Message(
|
||||||
title = "Uploading...",
|
title = "Uploading...",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue