]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/progress: pass id to constructor of Event
authorKefu Chai <kchai@redhat.com>
Sun, 17 Jan 2021 07:29:33 +0000 (15:29 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 26 Jan 2021 10:01:59 +0000 (18:01 +0800)
commit1268f36f2b3c1e33db465f576661991bf30727ec
tree89f1c6e3ba78ed41fe2f48ebf6ab9aecca53e43b
parentdee84744745fe9084b7f76a134df9b991bc5dce5
mgr/progress: pass id to constructor of Event

to assure that the self.id is always valid, it helps to silence the
warnings from mypy like:

progress/module.py: note: In member "_refresh" of class "Event":
progress/module.py:46: error: Argument 1 to "update_progress_event" of "MgrModule" has incompatible type "Optional[str]"; expected "str"

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