Update to address GH-137027. The fix for 3.10 has not been released yet. https://github.com/python/cpython/pull/137644