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

Automatic .pyi stub file generation #1942

Closed
cmpute opened this issue Feb 17, 2024 · 2 comments
Closed

Automatic .pyi stub file generation #1942

cmpute opened this issue Feb 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@cmpute
Copy link

cmpute commented Feb 17, 2024

This is a pretty large feature if it's going to be supported, but I still think it's very useful for users. Usually, I have to write the stub file manually and update the definition carefully against the implementation when changes are added. It will be really helpful if the stub files can be generated automatically. My rough idea is that this should be feasible through parsing the rustdoc json output.

@cmpute cmpute added the enhancement New feature or request label Feb 17, 2024
@cmpute
Copy link
Author

cmpute commented Feb 17, 2024

I'm using maturin build PyO3 libraries, so I post the feature request here. Not sure if it's the proper place to request, maybe this feature should be handled by pyo3 side?

@cmpute
Copy link
Author

cmpute commented Feb 17, 2024

I found this issue PyO3/pyo3#2454, sorry for the noise!

@cmpute cmpute closed this as completed Feb 17, 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