]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: clean-up service module type checking 36147/head
authorMichael Fritch <mfritch@suse.com>
Fri, 17 Jul 2020 15:26:52 +0000 (09:26 -0600)
committerMichael Fritch <mfritch@suse.com>
Fri, 17 Jul 2020 15:26:52 +0000 (09:26 -0600)
commit502c574c36f49947cb7a501cafd5530455451773
tree47d55e6529c185533148ff7825a5a1186bfd67b7
parentf8186bd72f807df3c8a31b8c515d2a9e4bb69d09
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>
src/pybind/mgr/cephadm/module.py