diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2019-11-11 10:57:34 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2019-11-11 10:57:34 +0300 |
commit | 896b73f8b31cbcc4b8404e8f6109bdd20a91319a (patch) | |
tree | 9c94f020bb3ae77864dbdae76c338eedd8fc2958 | |
parent | adaea90d50686315c6e1ef5d648e32766f144dfe (diff) |
Fix typing
-rw-r--r-- | cura/Scene/BuildPlateDecorator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/Scene/BuildPlateDecorator.py b/cura/Scene/BuildPlateDecorator.py index 758f79daaa..cff9f88f62 100644 --- a/cura/Scene/BuildPlateDecorator.py +++ b/cura/Scene/BuildPlateDecorator.py @@ -6,7 +6,7 @@ from cura.Scene.CuraSceneNode import CuraSceneNode class BuildPlateDecorator(SceneNodeDecorator): def __init__(self, build_plate_number: int = -1) -> None: super().__init__() - self._build_plate_number = None + self._build_plate_number = build_plate_number self.setBuildPlateNumber(build_plate_number) def setBuildPlateNumber(self, nr: int) -> None: @@ -19,7 +19,7 @@ class BuildPlateDecorator(SceneNodeDecorator): for child in self._node.getChildren(): child.callDecoration("setBuildPlateNumber", nr) - def getBuildPlateNumber(self): + def getBuildPlateNumber(self) -> int: return self._build_plate_number def __deepcopy__(self, memo): |