mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-16 22:57:49 -06:00
fix: type the code written today for mypy
Every error outside mypy-baseline.txt is fixed in the code: - common.py: the CRC32 step reused found, the name the layout branch gives a resolution tuple, for its list of matches. It now has its own name. bindings_of annotates its systems. - launchers.py, retropie_launchers.py, install.py: an Optional value read before its None check. - recalbox_launchers.py, rocknix_launchers.py: Launcher calls take typed keywords, a partial or named parameters, instead of a dict[str, object] spread. end_lineno falls back to lineno. - retrobat_launchers.py: the StageRomKey match no longer reuses the str key, and record values are checked before they are iterated. - batocera_launchers.py: the value of an assignment is read on an Assign or AnnAssign only, and the launcher list is annotated. - emuelec_launchers.py, emuelec_scraper.py, rocknix_scraper.py: import fallbacks no importer reaches are dropped, a reused name renamed. - batocera_targets_scraper.py: a submodule answer without a commit is refused. The baseline loses the 30 entries these fixes resolved and gains none.
This commit is contained in:
1 parent
b6129310e5
commit
13e60386be
16 files changed
+83
-119
No files matched your search
@@ -199,10 +199,7 @@ class Scraper(BaseScraper):
|
||||
the targets scraper, where every libretro profile counted before. A
|
||||
standalone package no device carries is not run either.
|
||||
"""
|
||||
try:
|
||||
from .targets.rocknix_targets_scraper import Scraper as DeviceTargets
|
||||
except ImportError:
|
||||
from scraper.targets.rocknix_targets_scraper import Scraper as DeviceTargets
|
||||
from .targets.rocknix_targets_scraper import Scraper as DeviceTargets
|
||||
builds = DeviceTargets().device_builds(self.tag or launcher_revision(self.url))
|
||||
libretro = sorted({core for _arch, lr, _sa in builds.values() for core in lr})
|
||||
carried = set(standalone_emulators(sorted({p for *_rest, sa in builds.values() for p in sa})))
|
||||
|
||||
Reference in new issue
Block a user