mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-15 22:43:48 -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
@@ -249,10 +249,7 @@ class Scraper(BaseScraper):
|
||||
engines depend on emuelec-ports, which no package of an image
|
||||
depends on, and flycast-dojo is in no device list (UNBUILT there).
|
||||
"""
|
||||
try:
|
||||
from .targets.emuelec_targets_scraper import Scraper as DeviceTargets
|
||||
except ImportError:
|
||||
from scraper.targets.emuelec_targets_scraper import Scraper as DeviceTargets
|
||||
from .targets.emuelec_targets_scraper import Scraper as DeviceTargets
|
||||
targets = DeviceTargets().device_targets(self.tag)["targets"]
|
||||
return {name for entry in targets.values() for name in entry["cores"]}
|
||||
|
||||
|
||||
Reference in new issue
Block a user