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 type information for pylance autocompletion #750

Closed
Dobid opened this issue Oct 28, 2022 · 2 comments · Fixed by #756
Closed

Python type information for pylance autocompletion #750

Dobid opened this issue Oct 28, 2022 · 2 comments · Fixed by #756

Comments

@Dobid
Copy link

Dobid commented Oct 28, 2022

Hello,
Correct me if I'm wrong but JSBSim python module is generated by cython. I couldn't get autocompletion on vscode when using JSBSim module (they use pylance as a language server). I asked this question on the pylance github :
Pylance Issue #3471. They replied that the module maintainer has to provide type information. So I'm wondering if you guys could implement this feature to make life easier for vscode (pylance) devs.

OS: Ubuntu 20.04
Language : Python 3.7
JSBSim 1.1.0
Thanks !

@bcoconni
Copy link
Member

Hi @Dobid, thanks for your feedback.

Indeed that would be a nice feature to have type hints in our Python module. I am currently adding that feature to JSBSim. The first step is in the PR #755 that prepares JSBSim for type hints stubs then there will be a second PR that addresses specifically your request.

Stay tuned !

@Dobid
Copy link
Author

Dobid commented Oct 31, 2022

Hello @bcoconni,
Thanks for your answer, I will keep track of the PR you mentionned.
Many thanks !

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

Successfully merging a pull request may close this issue.

2 participants