]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: disable type checking in diskprediction_local 70094/head
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 9 Jul 2026 20:12:11 +0000 (16:12 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 9 Jul 2026 20:12:11 +0000 (16:12 -0400)
commitfc49390a36517b02e49bc350ce082912cc39103d
tree056491967216149488b94bf9dfb4b9c7b756a904
parentba6eb32e88fc0ddba5b7e17bd70ea386cd577110
pybind/mgr: disable type checking in diskprediction_local

Disable type checking in the __preprocess function of
diskprediction_local. This function is already collecting a lot of
`type: ignore` comments and adding more is getting difficult due to
the structure of this function. This time we were hitting errors
like:

diskprediction_local/predictor.py:160: error: Value of type "NDArray?[Any]" is not indexable  [index]
diskprediction_local/predictor.py:161: error: "NDArray?[Any]" has no attribute "shape"  [attr-defined]

on python 3.12.

Fixes: https://tracker.ceph.com/issues/78117
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/diskprediction_local/predictor.py