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] Distribute typing information #167

Closed
Stranger6667 opened this issue Nov 7, 2022 · 2 comments · Fixed by #182
Closed

[Python] Distribute typing information #167

Stranger6667 opened this issue Nov 7, 2022 · 2 comments · Fixed by #182

Comments

@Stranger6667
Copy link
Owner

It would be useful if Python artifacts will have type stubs. At the moment, not all editors can utilize docstrings (i.e. some PyCharm versions use them) to get the typing info and it is definitely not enough for a pleasant developer experience.

@messense
Copy link

While we don't have auto-generated typing information from pyo3 yet, you can just add a handwritten css_inline.pyi file to bindings/python and maturin will package it automatically.

@Stranger6667
Copy link
Owner Author

@messense 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