]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common/deployment: disable some unused import flake8 errors
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 1 Nov 2024 17:43:31 +0000 (13:43 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 4 Nov 2024 20:38:43 +0000 (15:38 -0500)
Tell flake8 not to flag unused imports when those imports are part of an
old-style type comment. This was done rather than updating the type annotations
to the latest style because I am less familiar with this file and there are
many type comments.

Part of an effort to get ceph tox environments passing on Python 3.12.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/deployment/drive_selection/selector.py

index 59ebbb6347e438ade73a6bc18356a6577a1003af..85fc95cf39448f7bdb9621476062e1c2ca14ee19 100644 (file)
@@ -3,7 +3,7 @@ import logging
 from typing import List, Optional, Dict, Callable
 
 from ..inventory import Device
-from ..drive_group import DriveGroupSpec, DeviceSelection, DriveGroupValidationError
+from ..drive_group import DriveGroupSpec, DeviceSelection, DriveGroupValidationError  # noqa: F401
 
 from .filter import FilterGenerator
 from .matchers import _MatchInvalid