diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-11-08 19:36:50 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-11-08 19:36:50 +0300 |
commit | 4f569194ec4212368be13943e59939e22a5223ac (patch) | |
tree | 46d1155e66f524c314915f02b78bff6cf5bfecbe | |
parent | 463822f10f8cee38b13adc43892dc2731ef8db71 (diff) |
Add extra 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 dfb465b7ad..758f79daaa 100644 --- a/cura/Scene/BuildPlateDecorator.py +++ b/cura/Scene/BuildPlateDecorator.py @@ -4,12 +4,12 @@ from cura.Scene.CuraSceneNode import CuraSceneNode ## Make a SceneNode build plate aware CuraSceneNode objects all have this decorator. class BuildPlateDecorator(SceneNodeDecorator): - def __init__(self, build_plate_number = -1): + def __init__(self, build_plate_number: int = -1) -> None: super().__init__() self._build_plate_number = None self.setBuildPlateNumber(build_plate_number) - def setBuildPlateNumber(self, nr): + def setBuildPlateNumber(self, nr: int) -> None: # Make sure that groups are set correctly # setBuildPlateForSelection in CuraActions makes sure that no single childs are set. self._build_plate_number = nr |