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 <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
a1f0556a46
commit
f44df6f4fa
1 changed files with 1 additions and 3 deletions
|
@ -4,11 +4,9 @@
|
||||||
# Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
# Copyright (C) 2022, Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
|
||||||
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
import errno
|
|
||||||
import gc
|
import gc
|
||||||
import libcamera as libcam
|
import libcamera as libcam
|
||||||
import selectors
|
import selectors
|
||||||
import time
|
|
||||||
import typing
|
import typing
|
||||||
import unittest
|
import unittest
|
||||||
import weakref
|
import weakref
|
||||||
|
@ -282,7 +280,7 @@ class SimpleCaptureMethods(CameraTesterBase):
|
||||||
running = True
|
running = True
|
||||||
while running:
|
while running:
|
||||||
events = sel.select()
|
events = sel.select()
|
||||||
for key, _ in events:
|
for _ in events:
|
||||||
ready_reqs = cm.get_ready_requests()
|
ready_reqs = cm.get_ready_requests()
|
||||||
|
|
||||||
reqs += ready_reqs
|
reqs += ready_reqs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue