mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-01 05:48:52 -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
@@ -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