From: John Mulligan Date: Fri, 1 Nov 2024 17:43:17 +0000 (-0400) Subject: python-common/deployment: disable some unused import flake8 errors X-Git-Tag: v20.0.0~647^2~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4dd84cdf07f9fbc4b0e48d288dd6de70f6b09f0e;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/drive_selection/matchers.py b/src/python-common/ceph/deployment/drive_selection/matchers.py index df502410aeb..a6a2147ce9e 100644 --- a/src/python-common/ceph/deployment/drive_selection/matchers.py +++ b/src/python-common/ceph/deployment/drive_selection/matchers.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- -from typing import Tuple, Optional, Any, Union, Iterator +# TODO: remove noqa and update to python3/mypy style type annotations +from typing import Tuple, Optional, Any, Union, Iterator # noqa: F401 -from ceph.deployment.inventory import Device +from ceph.deployment.inventory import Device # noqa: F401 import re import logging