mirror of
https://github.com/apache/superset.git
synced 2026-08-05 21:42:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user