Skip to content

Commit 6bed02a

Browse files
Accept gemini's suggestion
Update python/private/py_internal.bzl Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent c3cee0a commit 6bed02a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

python/private/py_internal.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Re-exports the restricted-use py_internal helper under its original name.
1818
These may change at any time and are closely coupled to the rule implementation.
1919
"""
2020

21-
# The py_internal object needs to be accessed only from "tools/build_defs/python", so
22-
# we need to first put it there with a different name.
21+
# The native `py_internal` object is only visible to Starlark files under
22+
# `tools/build_defs/python`. To access it from `//python/private`, we use an
23+
# indirection through `//tools/build_defs/python/private/py_internal_renamed.bzl`,
24+
# which re-exports it under a different name.
2325
load("//tools/build_defs/python/private:py_internal_renamed.bzl", "py_internal_renamed") # buildifier: disable=bzl-visibility
2426

2527
py_internal = py_internal_renamed

0 commit comments

Comments
 (0)