Skip to content

Commit c5a43f4

Browse files
committed
wip
1 parent 3f14780 commit c5a43f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/private/python.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,10 @@ def parse_modules(*, module_ctx, _fail = fail):
248248
# "3.X"` transitions work as expected.
249249
minor_version_toolchains = []
250250
other_toolchains = []
251-
minor_mapping = config.minor_mapping
251+
minor_mapping = list(config.minor_mapping.values())
252252
for t in toolchains:
253253
# TODO @aignas 2025-04-04: I am getting lost here when unit testing
254-
if t.python_version == minor_mapping.get(t.python_version):
254+
if config.minor_mapping.get(t.python_version, t.python_version) in minor_mapping:
255255
minor_version_toolchains.append(t)
256256
else:
257257
other_toolchains.append(t)

0 commit comments

Comments
 (0)