Repository navigation
Postpone annotation evaluation in engine_compat.py so main's PEP 604 ratchet holds - #12556
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Repo tests (CPU, rest)is red on main since #11491 (merged 2026-10-02 13:40 UTC), and on every PR whose run includes it (#12528, #12526, #12535):engine_compat.py, added by #11491, annotateswheel_size(...) -> int | Nonewithoutfrom __future__ import annotations, so the union is evaluated when the function is defined and raisesTypeErroron the Python 3.9 floor. The ratchet asks for the future import rather than a higher count, and nothing in the script reads annotations at runtime (no dataclasses, pydantic orget_type_hints), so postponing them changes nothing else.Change
studio/backend/requirements/engines/engine_compat.py:from __future__ import annotationsafter the module docstring.Verification
tests/test_python39_compatibility.pytest_studio_evaluated_unions_do_not_growfails, naming this filestudio/backend/tests/test_managed_engines.py(reads this script's output)tests/test_formatter_fixed_point.pypasses.