Skip to content

Propagate .pyi files to PyInfo for type checking support#642

Open
furushchev wants to merge 1 commit into
rules-proto-grpc:masterfrom
furushchev:propagate-pyi-files
Open

Propagate .pyi files to PyInfo for type checking support#642
furushchev wants to merge 1 commit into
rules-proto-grpc:masterfrom
furushchev:propagate-pyi-files

Conversation

@furushchev

Copy link
Copy Markdown

This pull request:

  • Add support for propagating generated .pyi stub files to PyInfo.direct_pyi_files
  • Ensures type checkers and linters can properly resolve imports from generated protobuf modules when generate_pyi=True is set
  • Add regression test to verify PyInfo.direct_pyi_files is populated correctly

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file lang-python Python rules specific labels Mar 19, 2026
@furushchev

Copy link
Copy Markdown
Author

It looks like the failing tests aren't related to the changes in this pull request....

@furushchev

Copy link
Copy Markdown
Author

Kindly ping to maintainers @aaliddell

@aaliddell

Copy link
Copy Markdown
Member

Hey, sorry for the delay, I’ve been super short of time recently for this repo. Last I checked were upstream rules are in a state where they are broken but I can’t update them without bringing in another breaking change 😑. I’ll take a look when I can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file lang-python Python rules specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants