From: John Mulligan Date: Fri, 1 Nov 2024 17:45:57 +0000 (-0400) Subject: python-common/deployment: disable some unused import flake8 errors X-Git-Tag: v20.0.0~647^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39df3c0771a5abac334be4872edda3c331257a71;p=ceph.git python-common/deployment: disable some unused import flake8 errors 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 --- diff --git a/src/python-common/ceph/deployment/translate.py b/src/python-common/ceph/deployment/translate.py index 49fb17da725..9dfe7cfcf81 100644 --- a/src/python-common/ceph/deployment/translate.py +++ b/src/python-common/ceph/deployment/translate.py @@ -5,7 +5,7 @@ try: except ImportError: pass -from ceph.deployment.drive_selection.selector import DriveSelection +from ceph.deployment.drive_selection.selector import DriveSelection # noqa: F401 logger = logging.getLogger(__name__)