From: Sebastian Wagner Date: Fri, 20 Mar 2020 14:11:08 +0000 (+0100) Subject: mgr/cephadm: type annotation for HostCache.mgr X-Git-Tag: v16.1.0~2630^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=52e05f8d20a0042c5ba7bc2d30a9dbaf259f8809;p=ceph.git mgr/cephadm: type annotation for HostCache.mgr Signed-off-by: Sebastian Wagner --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 488f2893dc7..a796a260301 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -156,7 +156,7 @@ class SpecStore(): class HostCache(): def __init__(self, mgr): # type: (CephadmOrchestrator) -> None - self.mgr = mgr + self.mgr: CephadmOrchestrator = mgr self.daemons = {} # type: Dict[str, Dict[str, orchestrator.DaemonDescription]] self.last_daemon_update = {} # type: Dict[str, datetime.datetime] self.devices = {} # type: Dict[str, List[inventory.Device]]