From f44df6f4fa2051c3058ff2d4aa01cba5e69c7a95 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 3 Jun 2023 10:56:14 +0300 Subject: py: unittests.py: Fix type checker warnings Fix type checker warnings by dropping unused imports and using _ for variable names that are not used. Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- test/py/unittests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/py/unittests.py b/test/py/unittests.py index fe1e8ef0..1caea98e 100755 --- a/test/py/unittests.py +++ b/test/py/unittests.py @@ -4,11 +4,9 @@ # Copyright (C) 2022, Tomi Valkeinen from collections import defaultdict -import errno import gc import libcamera as libcam import selectors -import time import typing import unittest import weakref @@ -282,7 +280,7 @@ class SimpleCaptureMethods(CameraTesterBase): running = True while running: events = sel.select() - for key, _ in events: + for _ in events: ready_reqs = cm.get_ready_requests() reqs += ready_reqs -- cgit v1.2.1