From c6524fc7ac3a271a91fef994a9a9529940337596 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Tue, 13 Oct 2020 13:50:01 +0300 Subject: typing fixes --- testenv/tests/apps/cleanup/test_main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testenv') 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() -- cgit v1.2.3