-
Notifications
You must be signed in to change notification settings - Fork 257
Closed
Milestone
Description
Hi Matthias,
I think my request for the Point.move(d) confused your autogeneration script for the stubs 🫣
In the dbcode.pyi at line 704 there is a syntax error:
@overload
def moved(self, dx, 0: int, dy: Optional[int] = ...) -> Box:
r"""
@brief Moves the box by a certain distance
This is a convenience method which takes two values instead of a Point object.
This method has been introduced in version 0.23.
@return The moved box.
"""
...The dx, 0: int, should be dx: int = 0 I think. Also, I don't think dy: Optional[int] = ... is valid, I would assume it should be moved(dx: int = 0, dy: Optional[int] = None)
Hopefully this is just some minor tweak to fix it.
If you would want help with this, as always, I'd be happy to help.
Best,
Sebastian
(mypy found that error when I tried to type check kfactory as pre-commit 😄 )
Metadata
Metadata
Assignees
Labels
No labels