X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fpython-common%2Fceph%2Ftests%2Futils.py;h=ebba43094bc10451044d7d459c366753d80d7fde;hb=e306af509c4d4816a1f73b17a825ea5186fa0030;hp=2d714a6b2038fa15da111ace69da82cd3dd24e81;hpb=5164c6f75c1d9ca9e83f6172e1cd48f9ab584acf;p=ceph.git diff --git a/ceph/src/python-common/ceph/tests/utils.py b/ceph/src/python-common/ceph/tests/utils.py index 2d714a6b2..ebba43094 100644 --- a/ceph/src/python-common/ceph/tests/utils.py +++ b/ceph/src/python-common/ceph/tests/utils.py @@ -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())