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] Generate .pyi stubs by default for .proto #352

Merged

Conversation

sjportalatin
Copy link
Contributor

@sjportalatin sjportalatin commented Aug 30, 2024

Create a plugin that will generate pyi_out for standard proto. As per this comment.

This creates pyi files by default. Might mess with existing implementations, so maybe I can change to a flag or something instead?

Create a plugin that will generate pyi_out for standard proto.

Support for generating pyi stubs with grpc is limited as neither tool currently supports it (I think)
@github-actions github-actions bot added the lang-python Python rules specific label Aug 30, 2024
@sjportalatin sjportalatin changed the title Add pyi_out support by default for regular protos [python] Generate .pyi stubs by default for .proto but not grpc Aug 31, 2024
@sjportalatin sjportalatin changed the title [python] Generate .pyi stubs by default for .proto but not grpc [python] Generate .pyi stubs by default for .proto Sep 3, 2024
@aaliddell
Copy link
Member

Thanks, I'll merge this, fix the diff error and will also make this opt-in rather than on by default

@aaliddell aaliddell merged commit 155b8fe into rules-proto-grpc:master Nov 4, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-python Python rules specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants