gh-114053: Fix bad interaction of PEP-695, PEP-563 and ``get_type_hints`` (#118009) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>