Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc.lamboo <casperlamboo@gmail.com>2022-06-14 17:20:38 +0300
committerc.lamboo <casperlamboo@gmail.com>2022-06-14 17:20:38 +0300
commit0d4c3fa34d4690c16e5f536553e3f4d242d5620c (patch)
tree10bd5197d49a6a506134b3ad6ea71af187edd02f /plugins
parenta315171d7c442bb66664096d1b4765e9f03d84f6 (diff)
Use modern python typing notation
CURA-8555
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py b/plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py
index 940711f19c..bea5e0a6db 100644
--- a/plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py
+++ b/plugins/DigitalLibrary/src/DFFileExportAndUploadManager.py
@@ -37,16 +37,16 @@ class DFFileExportAndUploadManager:
formats: List[str],
on_upload_error: Callable[[], Any],
on_upload_success: Callable[[], Any],
- on_upload_finished: Callable[[], Any] ,
+ on_upload_finished: Callable[[], Any],
on_upload_progress: Callable[[int], Any]) -> None:
- self._file_handlers = file_handlers # type: Dict[str, FileHandler]
- self._nodes = nodes # type: List[SceneNode]
- self._library_project_id = library_project_id # type: str
- self._library_project_name = library_project_name # type: str
- self._file_name = file_name # type: str
- self._upload_jobs = [] # type: List[ExportFileJob]
- self._formats = formats # type: List[str]
+ self._file_handlers: Dict[str, FileHandler] = file_handlers
+ self._nodes: List[SceneNode] = nodes
+ self._library_project_id: str = library_project_id
+ self._library_project_name: str = library_project_name
+ self._file_name: str = file_name
+ self._upload_jobs: List[ExportFileJob] = []
+ self._formats: List[str] = formats
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
@@ -59,7 +59,7 @@ class DFFileExportAndUploadManager:
# show the success message (once both upload jobs are done)
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(
title = "Uploading...",