]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/orchestrator: workaround spurious mypy issue
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 13 Dec 2023 19:33:57 +0000 (14:33 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 23 Jan 2024 14:45:40 +0000 (09:45 -0500)
commitc14287f749e18467b3e2d0a1da0d5c21257d68b4
tree26518b0028217a6249565e21bc7150f5b1154752
parentf557827011e93d836f4334ca9c4efd5b9ef70c9b
pybind/mgr/orchestrator: workaround spurious mypy issue

When run locally mypy complains about the `name` field, possibly due to
us using an old mypy version on newer versions of python (we're stuck on
a Sept. 2022 version if you weren't aware). However, this could still be
an issue in mypy as there are open issues related to the `.name` field
of an enum. Regardless, we wouldn't know - so just work around it.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/orchestrator/module.py