mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Four findings trunk reports on files this branch adds, none of which CI tolerates. `_make_game` claimed `dict`, so passing it to `extract_metadata_from_igdb_rom` (which takes `Game`) was an arg-type error. It builds a real `Game` now. `Game` is `total=False` over a base that requires `id`, so the three keys the factory set to `None` are simply absent instead: every reader goes through `.get()`, which cannot tell the two apart. `alternative_names` and `game_localizations` need their element type spelled out, because mypy will not push a union context into a dict literal. `series_keys` takes a `Rom` and the diversity tests pass a stand-in, for the reason the module docstring gives. Cast at the one call that reaches a `Rom`-typed signature rather than grow the fake a database row's worth of attributes. `backfill_igdb_tags` reads fields named by a loop variable, which a TypedDict answers as `object`. It reads through a plain-mapping view instead. Bandit read `token == "--report"` as a hardcoded password on the strength of the variable's name. Renamed, rather than suppressed.