]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/mgr/mgr_module: correct annotation
authorKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 04:07:07 +0000 (12:07 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Jan 2021 08:30:54 +0000 (16:30 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/mgr_module.py

index a69b350e3f0b3b071331574d57d9ca2d981c32be..44a2c10f5d7aaa6c8c7eae6f5095c9a8a41998e0 100644 (file)
@@ -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: