]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/hello: add typing annotation
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jan 2021 16:48:36 +0000 (00:48 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Feb 2021 09:17:24 +0000 (17:17 +0800)
commit5ca4bc83611a2f018ea722f9c63b0e8f009131ef
tree6d0e663e1008c2e602101cbf9da040442f84da67
parentac9e308c3ac712a51766217ac73cf03bdbcb24b2
pybind/mgr/hello: add typing annotation

also, use Option and CLIReadCommand to define options and cli
commands. this module serves as a "hello world" example for
developers of mgr modules. so it's important to use the more
convenient and safer way to implement the module

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