gh-143055: Implementation of PEP 798 (#143056) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>