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:
authorJaime van Kessel <nallath@gmail.com>2017-04-13 17:32:17 +0300
committerJaime van Kessel <nallath@gmail.com>2017-04-13 17:32:17 +0300
commit437c78711de5712544fd458c4792cae9d7ae2229 (patch)
tree3b5480766ddedd1f3adfeb0cf611def8b4ee25d0 /cura/QualityManager.py
parent705158d1f898594e366ff7609c0282a91cb46e3d (diff)
Added typing to all singletons
This greatly helps with pycharms ability to do auto code completion
Diffstat (limited to 'cura/QualityManager.py')
-rw-r--r--cura/QualityManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/QualityManager.py b/cura/QualityManager.py
index d7b2c7d705..f0f095b912 100644
--- a/cura/QualityManager.py
+++ b/cura/QualityManager.py
@@ -16,9 +16,9 @@ class QualityManager:
## Get the singleton instance for this class.
@classmethod
- def getInstance(cls):
+ def getInstance(cls) -> "QualityManager":
# Note: Explicit use of class name to prevent issues with inheritance.
- if QualityManager.__instance is None:
+ if not QualityManager.__instance:
QualityManager.__instance = cls()
return QualityManager.__instance