From b70f36bf91af187b51aae7830223cc49b3cd4325 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 15 Jan 2021 01:26:13 +0800 Subject: [PATCH] pybind/mgr/mgr_module: annotate some methods as a vehicle to understand the interface Signed-off-by: Kefu Chai --- src/pybind/mgr/mgr_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index b57efed058881..7a0a5897aa3cf 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1264,13 +1264,13 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): """ self._ceph_set_health_checks(checks) - def _handle_command(self, inbuf, cmd): + def _handle_command(self, inbuf: str, cmd: Dict[str, Any]): if cmd['prefix'] not in CLICommand.COMMANDS: return self.handle_command(inbuf, cmd) return CLICommand.COMMANDS[cmd['prefix']].call(self, cmd, inbuf) - def handle_command(self, inbuf, cmd): + def handle_command(self, inbuf: str, cmd: Dict[str, Any]): """ Called by ceph-mgr to request the plugin to handle one of the commands that it declared in self.COMMANDS -- 2.39.5