mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
chore: type two test class attributes
This commit is contained in:
1 parent
b6599375f5
commit
0fdca4145a
2 files changed
+5
-1
No files matched your search
@@ -331,6 +331,9 @@ class Determinism(unittest.TestCase):
|
||||
class CommittedSetups(unittest.TestCase):
|
||||
"""The setup files this parser family writes."""
|
||||
|
||||
sources: dict[str, dict]
|
||||
paths: dict[str, Path]
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls) -> None:
|
||||
cls.sources = load_sources(ROMFOLDERS / "_sources")
|
||||
|
||||
@@ -21,6 +21,7 @@ import tempfile
|
||||
import unittest
|
||||
import urllib.error
|
||||
from pathlib import Path
|
||||
from types import ModuleType
|
||||
from unittest import mock
|
||||
|
||||
from model.sourcerevision import source_revision
|
||||
@@ -766,7 +767,7 @@ class UnreadableReleaseStopsTheScrape(unittest.TestCase):
|
||||
FILE_PINNED = {"retrobat"}
|
||||
|
||||
@classmethod
|
||||
def _construct(cls, module: object, scraper: str) -> object:
|
||||
def _construct(cls, module: ModuleType, scraper: str) -> object:
|
||||
if scraper in cls.FILE_PINNED:
|
||||
return module.Scraper(revision="master")
|
||||
return module.Scraper()
|
||||
|
||||
Reference in new issue
Block a user