From 19cdc4325ce47bef951fdab41fa15e6acadea1f7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 27 Jan 2021 12:07:07 +0800 Subject: [PATCH] pybind/mgr/mgr_module: correct annotation Signed-off-by: Kefu Chai --- src/pybind/mgr/mgr_module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index a69b350e3f0..44a2c10f5d7 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1,7 +1,7 @@ import ceph_module # noqa from typing import cast, Tuple, Any, Dict, Generic, Optional, Callable, List, \ - NamedTuple, Sequence, Union, TYPE_CHECKING + Mapping, NamedTuple, Sequence, Union, TYPE_CHECKING if TYPE_CHECKING: import sys if sys.version_info >= (3, 8): @@ -1276,7 +1276,8 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): """ self._ceph_send_command(result, svc_type, svc_id, command, tag, inbuf) - def set_health_checks(self, checks: Dict[str, Dict[str, Sequence[str]]]) -> None: + def set_health_checks(self, + checks: Mapping[str, Mapping[str, Union[int, str, Sequence[str]]]]) -> None: """ Set the module's current map of health checks. Argument is a dict of check names to info, in this form: