From: John Mulligan Date: Fri, 1 Nov 2024 17:44:14 +0000 (-0400) Subject: python-common/deployment: disable some unused import flake8 errors X-Git-Tag: v20.0.0~647^2~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9475f843b35067432cfd037291156f9b20aefa16;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_group.py b/src/python-common/ceph/deployment/drive_group.py index c68ee01a728..43175aa79fb 100644 --- a/src/python-common/ceph/deployment/drive_group.py +++ b/src/python-common/ceph/deployment/drive_group.py @@ -2,7 +2,7 @@ import enum import yaml from ceph.deployment.inventory import Device -from ceph.deployment.service_spec import ( +from ceph.deployment.service_spec import ( # noqa: F401 (type comments) CustomConfig, GeneralArgList, PlacementSpec, @@ -11,7 +11,7 @@ from ceph.deployment.service_spec import ( from ceph.deployment.hostspec import SpecValidationError try: - from typing import Optional, List, Dict, Any, Union + from typing import Optional, List, Dict, Any, Union # noqa: F401 except ImportError: pass