]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/mgr/mgr_module: annotate variable type
authorKefu Chai <kchai@redhat.com>
Tue, 19 Jan 2021 09:34:43 +0000 (17:34 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:02:24 +0000 (18:02 +0800)
commit00f5a80201923c85c50f8e8bb64e3e82458fd932
treeaf171c14e095f8ebe5a46561cedfbb42fab4b920
parent53415832cdbef94d2f3777e8f3abb8560b15323e
pybind/mgr/mgr_module: annotate variable type

to silence following mypy error:

cephadm/module.py:1155: error: Incompatible types in assignment
(expression has type "None", variable has type "str")

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/cephadm/module.py