From 962ffe72ac7bd3e131799f045c9dbecd95e0f9f9 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 22 Feb 2021 11:46:48 +0800 Subject: [PATCH] mgr/mgr_module correct typing of self_test self_test() is allowed to return str Signed-off-by: Kefu Chai --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index abfcfbd1bfb03..9d11583aa893d 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -1496,7 +1496,7 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin): def set_localized_store(self, key: str, val: Optional[str]) -> None: return self._set_localized(key, val, self.set_store) - def self_test(self) -> None: + def self_test(self) -> Optional[str]: """ Run a self-test on the module. Override this function and implement a best as possible self-test for (automated) testing of the module -- 2.39.5