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

Type annotations (for mypy etc.) #41

Open
gjcarneiro opened this issue Jul 2, 2019 · 2 comments
Open

Type annotations (for mypy etc.) #41

gjcarneiro opened this issue Jul 2, 2019 · 2 comments

Comments

@gjcarneiro
Copy link

gjcarneiro commented Jul 2, 2019

One cool featured that would be nice to have would be if capnpy would automatically generate Python type annotations.

Relevant links:

@nickmyatt
Copy link

This would be useful, but I cannot see any further announcements: cython/cython#1826 (comment)

@akhilman
Copy link

akhilman commented May 5, 2022

I just tried to manually write the type annotation to the .pyi file. It works well with pylsp even with a compiled pyx extension. The docstring defined in .pyi also showed up as class documentation.

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

No branches or pull requests

3 participants