From 568afcc9b077094a235f8b48105b840dc4242c0b Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 20 Mar 2020 15:11:08 +0100 Subject: [PATCH] mgr/cephadm: type annotation for HostCache.mgr Signed-off-by: Sebastian Wagner (cherry picked from commit 52e05f8d20a0042c5ba7bc2d30a9dbaf259f8809) --- src/pybind/mgr/cephadm/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 254a96d01ac6e..8bdac2fb08b97 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]] -- 2.39.5