make_game: add 14 missing function return type annotations (OLD-9988) #1787

Closed
Ch1mpleo wants to merge 2 commits from upstream-pr/1787 into main
Ch1mpleo commented 2026-11-25 12:09:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Ch1mpleo on 2026-11-25T12:09:41Z.


Claimed in the coordination issue as: OLD-9988 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161978345)

What and why

Carries forward old-pr/9988 (draft #257, preserving Jake Reddy's two original commits) rebased onto current main. Adds the 14 missing function return type annotations in make_game.py.

Tested

  • python -m compileall -q make_game.py — exit 0.
  • python -I make_game.py --help — exit 0.
  • python -I tests/test_text_write_line_endings.py — 3 tests, OK (Windows 11 x64, Python 3.14.7).
  • python -I scripts/check_no_game_data.py make_game.py — exit 0.

GPUs tested: n/a (CPU-only Python type annotations)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled
    eeds rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5491047074 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1787). Originally posted by [Ch1mpleo](https://github.com/Ch1mpleo) on 2026-11-25T12:09:41Z. --- Claimed in the coordination issue as: OLD-9988 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161978345) ### What and why Carries forward old-pr/9988 (draft #257, preserving Jake Reddy's two original commits) rebased onto current main. Adds the 14 missing function return type annotations in make_game.py. ### Tested - python -m compileall -q make_game.py — exit 0. - python -I make_game.py --help — exit 0. - python -I tests/test_text_write_line_endings.py — 3 tests, OK (Windows 11 x64, Python 3.14.7). - python -I scripts/check_no_game_data.py make_game.py — exit 0. GPUs tested: n/a (CPU-only Python type annotations) AI-assisted: yes ### Checklist - [x] Based on current main and merges cleanly (a conflicting pull request is labeled eeds rebase). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator change)
PierreEbele commented 2026-11-25 19:12:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T19:12:50Z.


Reviewed b995f18: annotation-only PR, so I checked it two ways. All 24 tests/test_make_game_*.py ran on both this branch and main with identical results (test_make_game_platform.py fails the same on both; it needs a locally built vk_pipeline_check, absent on this host). compileall passes and make_game.py --help output is byte-identical between the trees. A probe exercising fail(), match_version(), load_version(), smallest_max_subgroup(), barycentric_fallback_override(), xvd_header() and native_picker() prints identical values on both trees; only the return annotations differ, and each matches its body (fail ends in sys.exit(1) on every path). No finding. Minor: commit bbc3987's message says "build.py" but only make_game.py is touched, and the repo runs no type checker, so these annotations are documentation for readers and IDEs. This is the rebased resubmission of unmerged old PR #9988 (c0b44acec), not a duplicate.

AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7171975719 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1787#issuecomment-7171975719). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T19:12:50Z. --- Reviewed b995f18: annotation-only PR, so I checked it two ways. All 24 tests/test_make_game_*.py ran on both this branch and main with identical results (test_make_game_platform.py fails the same on both; it needs a locally built vk_pipeline_check, absent on this host). compileall passes and `make_game.py --help` output is byte-identical between the trees. A probe exercising fail(), match_version(), load_version(), smallest_max_subgroup(), barycentric_fallback_override(), xvd_header() and native_picker() prints identical values on both trees; only the return annotations differ, and each matches its body (fail ends in sys.exit(1) on every path). No finding. Minor: commit bbc3987's message says "build.py" but only make_game.py is touched, and the repo runs no type checker, so these annotations are documentation for readers and IDEs. This is the rebased resubmission of unmerged old PR #9988 (c0b44acec), not a duplicate. AI-assisted review. **Recommendation:** Merge
DadaCap commented 2026-11-28 10:33:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T10:33:37Z.


Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures.

Reason: type annotations only.

If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again.

AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7237975222 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1787#issuecomment-7237975222). Originally posted by [DadaCap](https://github.com/DadaCap) on 2026-11-28T10:33:37Z. --- Thanks for the contribution! This PR was reviewed by the maintainers and is being closed as part of a large batch of closures. Reason: type annotations only. If this looks like a mistake, mention @DadaCap here at any time and it will be looked at again. AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1787
No description provided.