Skip to content

Commit 84063fa

Browse files
committed
Make buildifier happy
1 parent dbb6f11 commit 84063fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

python/private/python.bzl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def _validate_version(version_str, *, _fail = fail):
598598

599599
return True
600600

601-
def _process_single_version_overrides(*, tag, _fail = fail, default, module_ctx = None):
601+
def _process_single_version_overrides(*, tag, _fail = fail, default, module_ctx = None): # buildifier: disable=unused-variable
602602
if not _validate_version(tag.python_version, _fail = _fail):
603603
return
604604

@@ -754,7 +754,7 @@ def _process_single_version_platform_overrides(*, tag, _fail = fail, default, mo
754754

755755
default["platforms"] = override_first
756756

757-
def _process_global_overrides(*, tag, default, _fail = fail, module_ctx = None):
757+
def _process_global_overrides(*, tag, default, _fail = fail, module_ctx = None): # buildifier: disable=unused-variable
758758
if tag.available_python_versions:
759759
available_versions = default["tool_versions"]
760760
all_versions = dict(available_versions)
@@ -814,7 +814,7 @@ def _get_toolchain_config(*, module_ctx, _fail = fail):
814814
"""Computes the configs for toolchains.
815815
816816
Args:
817-
modules: The modules from module_ctx
817+
module_ctx: {type}`module_ctx` module context.
818818
_fail: Function to call for failing; only used for testing.
819819
820820
Returns:
@@ -1399,10 +1399,6 @@ Docs for [Registering custom runtimes]
13991399
:::
14001400
""",
14011401
),
1402-
"urls": attr.string_list(
1403-
mandatory = False,
1404-
doc = "The URL template to fetch releases for this Python version. If the URL template results in a relative fragment, default base URL is going to be used. Occurrences of `{python_version}`, `{platform}` and `{build}` will be interpolated based on the contents in the override and the known {attr}`platform` values.",
1405-
),
14061402
"url_env": attr.string(
14071403
mandatory = False,
14081404
doc = """\
@@ -1412,6 +1408,10 @@ The environment variable for a comma-separated list of URLs. Overrides `urls` if
14121408
:::
14131409
""",
14141410
),
1411+
"urls": attr.string_list(
1412+
mandatory = False,
1413+
doc = "The URL template to fetch releases for this Python version. If the URL template results in a relative fragment, default base URL is going to be used. Occurrences of `{python_version}`, `{platform}` and `{build}` will be interpolated based on the contents in the override and the known {attr}`platform` values.",
1414+
),
14151415
},
14161416
)
14171417

0 commit comments

Comments
 (0)