diff options
| author | Ethan Furman <ethan@stoneleaf.us> | 2020-12-10 00:41:22 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-10 00:41:22 (GMT) |
| commit | 6bd94de168b58ac9358277ed6f200490ab26c174 (patch) | |
| tree | 01dfe448e2651e084d9d8e34eb7a301b2c6cc6c7 /Python/makeopcodetargets.py | |
| parent | 2a35137328154aa2513649dcf0bbef02c998e27c (diff) | |
| download | cpython-6bd94de168b58ac9358277ed6f200490ab26c174.zip cpython-6bd94de168b58ac9358277ed6f200490ab26c174.tar.gz cpython-6bd94de168b58ac9358277ed6f200490ab26c174.tar.bz2 | |
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.
Diffstat (limited to 'Python/makeopcodetargets.py')
0 files changed, 0 insertions, 0 deletions
