diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-06-13 17:35:48 +0300 |
---|---|---|
committer | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2018-06-13 17:35:48 +0300 |
commit | f2768fd761c3aef98f0546d0a8daf927e823a27b (patch) | |
tree | ceb2f9b2b81fb4fab63dcfccb565d66873dc5214 /cura/Backups | |
parent | f700a395475abecca2f3a3df2bbda6f4571347ce (diff) |
CURA-5330 Fix typing in the Backups
Diffstat (limited to 'cura/Backups')
-rw-r--r-- | cura/Backups/BackupsManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/Backups/BackupsManager.py b/cura/Backups/BackupsManager.py index 850b0a2edc..bc560a8dd9 100644 --- a/cura/Backups/BackupsManager.py +++ b/cura/Backups/BackupsManager.py @@ -1,6 +1,6 @@ # Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. -from typing import Optional +from typing import Optional, Tuple from UM.Logger import Logger from cura.Backups.Backup import Backup @@ -18,7 +18,7 @@ class BackupsManager: ## Get a back-up of the current configuration. # \return A tuple containing a ZipFile (the actual back-up) and a dict # containing some metadata (like version). - def createBackup(self) -> (Optional[bytes], Optional[dict]): + def createBackup(self) -> Tuple[Optional[bytes], Optional[dict]]: self._disableAutoSave() backup = Backup() backup.makeFromCurrent() |