[Python-checkins] gh-128617: Fix `test_typing.test_readonly_inheritance` (#128618)