chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-11-12 07:10:27 +09:00
1 parent 3e7b49203a
commit f7d95d5407
11 files changed
+99 -61

No files matched your search

+2 -2
View File
@@ -23,11 +23,11 @@ if TYPE_CHECKING:
def test_dayz_patch_pending(
monkeypatch: "MonkeyPatch", file_list: list[str], expect: bool
) -> None:
def mock_get_pending_downloads(steam_path: Path, appid: int) -> None:
def mock_get_pending_downloads(steam_path: Path, appid: int) -> list[Path]:
files = [Path(file) for file in file_list]
return files
monkeypatch.setattr(
"dzgui.api.steam.get_pending_downloads", mock_get_pending_downloads
)
assert is_dayz_downloading(Path("/tmp"), Path("/tmp")) == expect
assert is_dayz_downloading(Path("/tmp"), 221100) == expect