Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] Update stubs after #665 and #666 #668

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

StudioWEngineers
Copy link

As discussed in #665, this PR updates the stubs for AddPoint and AddLine after the modifications on the binding code in #665 and #666.

In my humble opinion, overload stubs were not correctly set and, at least in Windows 10 - VSCode - Python 3.13, only the first definition of AddPoint was shown via IntelliSense. With the proposed changes, everything seems to be ok (I did not try macos or Linux).

image

There might be other overload stubs that suffer the same issue, e.g., class Arc.__init__(...) or class Circle.__init__(...). If you agree on the proposed modification, I can fix some of them in another PR when I find a slot.

@StudioWEngineers
Copy link
Author

References can be found here:

https://peps.python.org/pep-0484/#function-method-overloading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant