From: Kefu Chai Date: Wed, 27 Jan 2021 04:07:07 +0000 (+0800) Subject: pybind/mgr/mgr_module: correct annotation X-Git-Tag: v17.1.0~3148^2~11 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=19cdc4325ce47bef951fdab41fa15e6acadea1f7;p=ceph-ci.git pybind/mgr/mgr_module: correct annotation Signed-off-by: Kefu Chai --- 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: