Skip to content

[pull] main from bazel-contrib:main#315

Merged
pull[bot] merged 1 commit intogarymm:mainfrom
bazel-contrib:main
Jun 27, 2025
Merged

[pull] main from bazel-contrib:main#315
pull[bot] merged 1 commit intogarymm:mainfrom
bazel-contrib:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jun 27, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.2)

Can you help keep this open source service alive? 💖 Please sponsor : )

#2538 added the
attribute `pyi_deps` to python rules, intended to be used for
dependencies that are only used for type-checking purposes. This PR adds
a new directive, `gazelle:python_generate_pyi_deps`, which, when
enabled:

- When a dependency is added only to satisfy type-checking only imports
(in a `if TYPE_CHECKING:` block), the dependency is added to `pyi_deps`
instead of `deps`;
- Third-party stub packages (eg. `boto3-stubs`) are now added to
`pyi_deps` instead of `deps`.

---------

Co-authored-by: Douglas Thor <dougthor42@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Jun 27, 2025
@pull pull Bot added the ⤵️ pull label Jun 27, 2025
@pull pull Bot merged commit e5ef69b into garymm:main Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant