mirror of
https://github.com/aclist/dztui.git
synced 2026-11-12 04:50:37 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
3e7b49203a
commit
f7d95d5407
11 files changed
+99
-61
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import pytest
|
||||
import unittest
|
||||
|
||||
from unittest.mock import patch
|
||||
from typing import Any
|
||||
|
||||
from dzgui.const.constants import (
|
||||
FLATPAK_APPID,
|
||||
@@ -15,7 +17,7 @@ pytestmark = pytest.mark.flatpak
|
||||
|
||||
class TestSteamDetection(unittest.TestCase):
|
||||
def test_flatpak_detection_with_multiple_running_apps(self) -> None:
|
||||
def flatpak_output(args, *, text: str) -> str:
|
||||
def flatpak_output(args: Any, *, text: str) -> str:
|
||||
# Default 'flatpak ps' includes instance, PID, app and runtime columns.
|
||||
if args == ["flatpak", "ps", "--columns=application"]:
|
||||
return f"com.spotify.Client\n{FLATPAK_APPID}\n{FLATPAK_APPID}\n"
|
||||
|
||||
Reference in new issue
Block a user