]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
squid: python-common: fix mypy errors in earmarking.py 63911/head
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 1 Nov 2024 15:25:35 +0000 (11:25 -0400)
committerAvan Thakkar <athakkar@redhat.com>
Fri, 13 Jun 2025 06:39:12 +0000 (12:09 +0530)
commit04effd01a62ab814b936586c15565cc23a35d828
tree226a32adab62c1b575ea53a6e2359019c19c8aca
parentf787578ef2f71869b8f1cc1e55b46dafcf77a71f
squid: python-common: fix mypy errors in earmarking.py

Fix various errors found by running mypy with python 3.12 on the
python-common subtree. Uses a Protocol as a stand-in for actual file
system integration objects.

Part of an effort to get ceph tox environments passing on Python 3.12.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit b77829c45e213d3e984789b903d50d9267be5c74)
src/python-common/ceph/fs/earmarking.py