]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix mypy issues and enable it by default 33454/head
authorVolker Theile <vtheile@suse.com>
Mon, 24 Feb 2020 12:03:13 +0000 (13:03 +0100)
committerVolker Theile <vtheile@suse.com>
Tue, 25 Feb 2020 10:27:03 +0000 (11:27 +0100)
commitba5e1179a47bd04afde54d56b99bb99c9da953b0
tree5d690abc3fdf7a8a841cb4f03fab3c73d3f7c6e6
parent6c083a0bcf846254baac1ea8bf1cf47750875c99
mgr/dashboard: Fix mypy issues and enable it by default

The decorator @no_type_check is used:
* To prevent a mypy error like 'error: INTERNAL ERROR -- Please try using mypy master on Github:'
* '#type: ignore' does not work, e.g. in broken lines

Fixes: https://tracker.ceph.com/issues/44269
Signed-off-by: Volker Theile <vtheile@suse.com>
31 files changed:
src/pybind/mgr/dashboard/__init__.py
src/pybind/mgr/dashboard/awsauth.py
src/pybind/mgr/dashboard/cherrypy_backports.py
src/pybind/mgr/dashboard/controllers/__init__.py
src/pybind/mgr/dashboard/controllers/cephfs.py
src/pybind/mgr/dashboard/controllers/iscsi.py
src/pybind/mgr/dashboard/controllers/orchestrator.py
src/pybind/mgr/dashboard/controllers/osd.py
src/pybind/mgr/dashboard/controllers/rbd_mirroring.py
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/dashboard/plugins/debug.py
src/pybind/mgr/dashboard/plugins/feature_toggles.py
src/pybind/mgr/dashboard/plugins/interfaces.py
src/pybind/mgr/dashboard/plugins/pluggy.py
src/pybind/mgr/dashboard/plugins/plugin.py
src/pybind/mgr/dashboard/plugins/ttl_cache.py
src/pybind/mgr/dashboard/rest_client.py
src/pybind/mgr/dashboard/services/access_control.py
src/pybind/mgr/dashboard/services/auth.py
src/pybind/mgr/dashboard/services/ceph_service.py
src/pybind/mgr/dashboard/services/exception.py
src/pybind/mgr/dashboard/services/iscsi_client.py
src/pybind/mgr/dashboard/services/iscsi_config.py
src/pybind/mgr/dashboard/services/orchestrator.py
src/pybind/mgr/dashboard/services/rbd.py
src/pybind/mgr/dashboard/services/rgw_client.py
src/pybind/mgr/dashboard/services/sso.py
src/pybind/mgr/dashboard/services/tcmu_service.py
src/pybind/mgr/dashboard/tools.py
src/pybind/mgr/tox.ini