Skip to content

PythonStandalone Package 0.29.9 stubs errors #1942

@sebastian-goeldi

Description

@sebastian-goeldi

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions