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

Open
github-bot wants to merge 2 commits from github-bot/gh-1787 into main AGit
Owner

@⁠Ch1mpleo on GitHub · 2026-11-25 12:09 UTC · original
Ch1mpleo:carry/old-9988 → main · +15 −13 · 1 files · 2 commits · open

Claimed in the coordination issue as: OLD-9988 (#1608)

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)
**@⁠Ch1mpleo** on GitHub · 2026-11-25 12:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1787) `Ch1mpleo:carry/old-9988` → `main` · +15 −13 · 1 files · 2 commits · open Claimed in the coordination issue as: OLD-9988 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### 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)
- Added explicit return types to all functions in build.py which didn't have on prior, bar class __init__
- Changed fail from None to NoReturn
- Changed load_version from dict | None to dict
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:05:18 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 19:12 UTC · original

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

**@⁠PierreEbele** on GitHub · 2026-11-25 19:12 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1787#issuecomment-7171975719) 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
github-bot force-pushed github-bot/gh-1787 from b995f188e7 to a47d09c89e 2026-11-26 15:21:32 +00:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1787/head:github-bot/gh-1787'
git switch 'github-bot/gh-1787'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1787'
git switch 'github-bot/gh-1787'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1787'
git switch 'github-bot/gh-1787'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1787'
git switch 'main'
git merge --squash 'github-bot/gh-1787'
git switch 'main'
git merge --ff-only 'github-bot/gh-1787'
git switch 'main'
git merge 'github-bot/gh-1787'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.