CURA-4525 add comment and type hint

This commit is contained in:
Jack Ha 2018-01-03 15:49:31 +01:00
parent 62487e8ea2
commit 9e5f0e10b9
2 changed files with 2 additions and 1 deletions

View File

@ -169,6 +169,7 @@ class Arrange:
# \param x x-coordinate # \param x x-coordinate
# \param y y-coordinate # \param y y-coordinate
# \param shape_arr ShapeArray object # \param shape_arr ShapeArray object
# \param update_empty updates the _is_empty, used when adding disallowed areas
def place(self, x, y, shape_arr, update_empty = True): def place(self, x, y, shape_arr, update_empty = True):
x = int(self._scale * x) x = int(self._scale * x)
y = int(self._scale * y) y = int(self._scale * y)

View File

@ -18,7 +18,7 @@ from typing import List
class ArrangeArray: class ArrangeArray:
def __init__(self, x, y, fixed_nodes): def __init__(self, x: int, y: int, fixed_nodes: List[SceneNode]):
self._x = x self._x = x
self._y = y self._y = y
self._fixed_nodes = fixed_nodes self._fixed_nodes = fixed_nodes