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

Support for IDE python type hinting and autocompletion #154

Open
npetersen2 opened this issue Mar 6, 2024 · 0 comments
Open

Support for IDE python type hinting and autocompletion #154

npetersen2 opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@npetersen2
Copy link

npetersen2 commented Mar 6, 2024

Pygmo is working great for my application. However, it is time-consuming to implement new application code due to lack of type hinting in python from the core pygmo library.

For example, when computing the pareto front:

There is no IDE support to help accelerate code time.

However, the docs page clearly states exactly what is expected as input and output from this function:

Describe the solution you'd like
Python type hinting and help docstrings have become very popular. It would be nice to have this built into pygmo so the IDE (VSCode in my case) can easily show helpful information.

For example, when I use the pandas library, it gives wonderful IDE hints:

When I browse the pygmo code files, it seems the issue is the core library functions are written in C and imported from the .pyd file, so the Python IDE support has no way of seeing the available functions, except during runtime.

Is there a way to wrap the functions in core.pyd to enable type hinting and IDE code support?

@npetersen2 npetersen2 added the enhancement New feature or request label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant