SIGN IN SIGN UP

bpo-42567: [Enum] call __init_subclass__ after members are added (GH-23714)

When creating an Enum, type.__new__ calls __init_subclass__, but at that point the members have not been added.

This patch suppresses the initial call, then manually calls the ancestor __init_subclass__ before returning the new Enum class.
E
Ethan Furman committed
6bd94de168b58ac9358277ed6f200490ab26c174
Parent: 2a35137
Committed by GitHub <noreply@github.com> on 12/10/2020, 12:41:22 AM