Skip to content

[v3-2-test] Sync default image Python version references (#64994)#65045

Merged
jscheffl merged 1 commit intov3-2-testfrom
backport-d212f62-v3-2-test
Apr 11, 2026
Merged

[v3-2-test] Sync default image Python version references (#64994)#65045
jscheffl merged 1 commit intov3-2-testfrom
backport-d212f62-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown

  • Sync default image Python version references

  • Fix mypy type error in _read_global_constants_assignment return type

Since ast.literal_eval() returns Any, annotating the private helper as
returning str | list[str] caused mypy errors in both callers: assigning
the result to list[str] and returning it as str. Changing the return
type to Any (which matches ast.literal_eval) resolves both without
requiring casts.

  • Update scripts/ci/prek/common_prek_utils.py

Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com


(cherry picked from commit d212f62)

Co-authored-by: DaveT1991 129008657+DaveT1991@users.noreply.github.com
Co-authored-by: Copilot 175728472+Copilot@users.noreply.github.com

* Sync default image Python version references

* Fix mypy type error in _read_global_constants_assignment return type

Since ast.literal_eval() returns Any, annotating the private helper as
returning str | list[str] caused mypy errors in both callers: assigning
the result to `list[str]` and returning it as `str`. Changing the return
type to Any (which matches ast.literal_eval) resolves both without
requiring casts.

* Update scripts/ci/prek/common_prek_utils.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------
(cherry picked from commit d212f62)

Co-authored-by: DaveT1991 <129008657+DaveT1991@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@boring-cyborg boring-cyborg bot added area:dev-tools area:production-image Production image improvements and fixes backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch kind:documentation labels Apr 11, 2026
@jscheffl jscheffl marked this pull request as ready for review April 11, 2026 09:17
@jscheffl jscheffl merged commit 68f7137 into v3-2-test Apr 11, 2026
3 checks passed
@jscheffl jscheffl deleted the backport-d212f62-v3-2-test branch April 11, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:production-image Production image improvements and fixes backport-to-v3-2-test Mark PR with this label to backport to v3-2-test branch kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants