mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 07:14:24 +08:00
CURA-4525 add comment and type hint
This commit is contained in:
parent
62487e8ea2
commit
9e5f0e10b9
@ -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…
x
Reference in New Issue
Block a user