]> git.apps.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)
committerAfreen <afreen23.git@gmail.com>
Thu, 15 Feb 2024 08:29:36 +0000 (13:59 +0530)
commit9b8749a4a87ee801ac84607e2935543bbccf4803
tree6f27f104682de6a24a6335404dec7a0e82c49759
parent7562a5f5cbe85be5cc39eacafe99ff46ebf45bb4
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