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

[Stubgenc] Generate Type Annotations from __annotations__ #17463

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

InvincibleRMC
Copy link
Contributor

This adds support for generating type annotations from __annotations__ for module variables and class variables. Currently functions can have types encoded with docstrings but for fields only runtime introspection is viable which obviously makes typing containers or generics impossible.

@InvincibleRMC InvincibleRMC changed the title [Stubgenc] Generate Type Annoations from __annotations__ [Stubgenc] Generate Type Annotations from __annotations__ Jul 2, 2024
@InvincibleRMC
Copy link
Contributor Author

Could allow pybind and other binding programs to give type annotations to modules and class fields.

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

Successfully merging this pull request may close these issues.

1 participant