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

Closed
leonida/mandy
Ch1mpleo wants to merge 0 commits from carry/old-9988 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Ch1mpleo commented 2026-11-25 12:09:41 +00:00

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)
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

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

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

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.

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.
Sign in to join this conversation.
No description provided.