]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: add an assertion for type narrowing
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 28 Mar 2023 21:06:51 +0000 (17:06 -0400)
committerAdam King <adking@redhat.com>
Tue, 25 Apr 2023 12:36:55 +0000 (08:36 -0400)
commite74f6deebc49249df51b86be2d1dc03868728268
treece2a3c48c2419c683a973b08b9bc99da43b5fd19
parent8ec91f78f36398f8f07d4cccb05c0c42bfaf045e
mgr/dashboard: add an assertion for type narrowing

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit e1df7d939ff9f3445b129c9ace5387bd639c8e7a)
src/pybind/mgr/dashboard/controllers/_rest_controller.py