fix(i18n): annotate remaining language-pack locals

Add explicit type hints to the local variables left un-annotated in the
language-pack view and its tests, matching the typed style already used
for their neighbors.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Evan
2026-07-11 17:18:28 -07:00
parent ee8eace7ba
commit 95d1f6b699
3 changed files with 8 additions and 8 deletions

View File

@@ -107,9 +107,9 @@ def test_spa_template_loads_pack_before_entry_bundle() -> None:
).read_text()
tag_start: int = template.index('<script src="{{ language_pack_src }}"')
entry_start = template.index("js_bundle(assets_prefix, entry)")
entry_start: int = template.index("js_bundle(assets_prefix, entry)")
assert tag_start < entry_start
script_tag = template[tag_start : template.index(">", tag_start)]
script_tag: str = template[tag_start : template.index(">", tag_start)]
assert "async" not in script_tag
assert "defer" not in script_tag