]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: clean-up service module type checking
authorMichael Fritch <mfritch@suse.com>
Fri, 17 Jul 2020 15:26:52 +0000 (09:26 -0600)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 23 Jul 2020 13:20:10 +0000 (15:20 +0200)
commit9293a697a9f006ebb0c5cba94e1ad1d12c3e4ac9
tree2d7509fee02c1e297de292a01a58122ec5ef7f9d
parentae61c21349a77f8cc770213537e099158ffd600d
mgr/cephadm: clean-up service module type checking

mypy cast to avoid:

cephadm/module.py: note: In member "_config_fn" of class "CephadmOrchestrator":
cephadm/module.py:1797: error: Incompatible return value type (got "Optional[function]", expected "Optional[Callable[[ServiceSpec], None]]")

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 502c574c36f49947cb7a501cafd5530455451773)
src/pybind/mgr/cephadm/module.py