bpo-43977: Properly update the tp_flags of existing subclasses when their parents are registered (GH-26864)

(cherry picked from commit ca2009d72a52a98bf43aafa9ad270a4fcfabfc89)

Co-authored-by: Brandt Bucher <brandt@python.org>
4 files changed