]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/python-common/ceph/tests/utils.py
import 15.2.4
[ceph.git] / ceph / src / python-common / ceph / tests / utils.py
index 2d714a6b2038fa15da111ace69da82cd3dd24e81..ebba43094bc10451044d7d459c366753d80d7fde 100644 (file)
@@ -1,5 +1,10 @@
 from ceph.deployment.inventory import Devices, Device
 
+try:
+    from typing import Any, List
+except ImportError:
+    pass  # for type checking
+
 
 def _mk_device(rotational=True,
                locked=False,
@@ -29,6 +34,7 @@ def _mk_device(rotational=True,
 
 
 def _mk_inventory(devices):
+    # type: (Any) -> List[Device]
     devs = []
     for dev_, name in zip(devices, map(chr, range(ord('a'), ord('z')))):
         dev = Device.from_json(dev_.to_json())