]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
python-common: fix variable name reuse to make mypy happy
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Mar 2023 20:48:02 +0000 (16:48 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Mar 2023 20:52:53 +0000 (16:52 -0400)
commitf2646dbaba943baccd2fa7d7860c73fa05e7cd8d
tree3df299fb713501f56e447c4a2641a6e3d27f3dd0
parent3035ca6c52168245dcc2104ef58615948697e740
python-common: fix variable name reuse to make mypy happy

The variables high and low were being used as both `str`s and regex
match objects. Rename the vars in the if block to avoid this problem.
This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/python-common/ceph/deployment/drive_selection/matchers.py