mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
CURA-4525 add comment and type hint
This commit is contained in:
parent
62487e8ea2
commit
9e5f0e10b9
2 changed files with 2 additions and 1 deletions
|
@ -169,6 +169,7 @@ class Arrange:
|
|||
# \param x x-coordinate
|
||||
# \param y y-coordinate
|
||||
# \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):
|
||||
x = int(self._scale * x)
|
||||
y = int(self._scale * y)
|
||||
|
|
|
@ -18,7 +18,7 @@ from typing import List
|
|||
|
||||
|
||||
class ArrangeArray:
|
||||
def __init__(self, x, y, fixed_nodes):
|
||||
def __init__(self, x: int, y: int, fixed_nodes: List[SceneNode]):
|
||||
self._x = x
|
||||
self._y = y
|
||||
self._fixed_nodes = fixed_nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue