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

Ability to provide type hints? #618

Closed
DavidVentura opened this issue Sep 2, 2021 · 2 comments
Closed

Ability to provide type hints? #618

DavidVentura opened this issue Sep 2, 2021 · 2 comments
Labels
documentation Documentation needs improvement

Comments

@DavidVentura
Copy link

Hi!
Is it possible to provide type hints (either automatically or manually generated) within the wheels?
This is currently not working for my simple project using rust-cpython

@messense
Copy link
Member

messense commented Sep 2, 2021

Currently only manually provided type stub files are supported. You can take a look at this example project https://github.com/PyO3/maturin/tree/main/test-crates/pyo3-pure, all you need to provide is a <project_name>.pyi file for pure Rust layout project.

@DavidVentura
Copy link
Author

Fantastic!!! thank you

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

No branches or pull requests

2 participants