diff options
author | Devaev Maxim <[email protected]> | 2020-10-13 13:50:01 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-13 13:50:01 +0300 |
commit | c6524fc7ac3a271a91fef994a9a9529940337596 (patch) | |
tree | 5cef560dfac73d4143df893e0a5be21e344222a8 /testenv | |
parent | 51ac65d542e041c4f75f0428fe4e84a10ef1c356 (diff) |
typing fixes
Diffstat (limited to 'testenv')
-rw-r--r-- | testenv/tests/apps/cleanup/test_main.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testenv/tests/apps/cleanup/test_main.py b/testenv/tests/apps/cleanup/test_main.py index f9b74a06..72fba6d9 100644 --- a/testenv/tests/apps/cleanup/test_main.py +++ b/testenv/tests/apps/cleanup/test_main.py @@ -22,9 +22,10 @@ import os import multiprocessing -import multiprocessing.queues import time +from typing import Literal + import setproctitle from kvmd.apps.cleanup import main @@ -32,7 +33,8 @@ from kvmd.apps.cleanup import main # ===== def test_ok(tmpdir) -> None: # type: ignore - queue: multiprocessing.queues.Queue = multiprocessing.Queue() + _ = Literal # Makes liters happy + queue: "multiprocessing.Queue[Literal[True]]" = multiprocessing.Queue() ustreamer_sock_path = os.path.abspath(str(tmpdir.join("ustreamer-fake.sock"))) open(ustreamer_sock_path, "w").close() |