Skip to content

Generate .pyi files in py_proto_library (#10366) #21567

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dws
Copy link

@dws dws commented May 2, 2025

We here adjust py_proto_library to produce .pyi files along with the .py files it already generates. This achieves the same effect as the gRPC py_proto_library.

Closes #10366.

We here adjust py_proto_library to produce `.pyi` files along with
the `.py` files it already generates.  This achieves the same effect
as the gRPC py_proto_library.

Closes protocolbuffers#10366.
@jasonkuster
Copy link

+1; with grpc moving to using protobuf as the default for py_proto_library it regresses the creation of pyi files; this is the approach that repo takes and it would be very appreciated to get something like this merged.

@anandolee anandolee self-requested a review May 12, 2025 16:52
@anandolee anandolee added the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 12, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 12, 2025
@dws dws marked this pull request as ready for review May 13, 2025 18:27
@dws
Copy link
Author

dws commented May 13, 2025

@anandolee Thanks for adding the tag! It looks like my PR passes CI, so I look forward to your review.

@mkruskal-google mkruskal-google added python bazel 🅰️ safe for tests Mark a commit as safe to run presubmits over labels May 19, 2025
@github-actions github-actions bot removed the 🅰️ safe for tests Mark a commit as safe to run presubmits over label May 19, 2025
@mkruskal-google mkruskal-google requested a review from haberman May 19, 2025 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support pyi_out in py_proto_library
4 participants