ceph/deployment/drive_selection/filter.py:8:5: F401 'typing.Optional' imported but unused
ceph/tests/test_disk_selector.py:5:1: F401 'ceph.deployment.drive_group.DriveGroupValidationError' imported but unused
ceph/tests/test_disk_selector.py:10:5: F401 'mock.patch' imported but unused
Signed-off-by: Sage Weil <sage@redhat.com>
from ceph.deployment.drive_group import DeviceSelection
try:
- from typing import Optional, Generator
+ from typing import Generator
except ImportError:
pass
from ceph.deployment.inventory import Devices, Device
-from ceph.deployment.drive_group import DriveGroupSpec, DriveGroupValidationError, DeviceSelection
-
-try:
- from unittest.mock import patch
-except ImportError:
- from mock import patch # type: ignore
+from ceph.deployment.drive_group import DriveGroupSpec, DeviceSelection
from ceph.deployment import drive_selection
from ceph.tests.factories import InventoryFactory