bpo-41517: do not allow Enums to be extended (#22271)

fix bug that let Enums be extended via multiple inheritance
3 files changed