summaryrefslogtreecommitdiffstats
path: root/Python/generated_cases.c.h
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-12 13:53:16 (GMT)
committerGitHub <noreply@github.com>2023-09-12 13:53:16 (GMT)
commitca848bbf78cf82447cc5c2fe6822c82f6f9e59c4 (patch)
tree6ea447912f1d9324f03a0d9dfe4e3bc57d1cac61 /Python/generated_cases.c.h
parentd533ab17ec37b457a5cc286f30c7559e358492bf (diff)
downloadcpython-ca848bbf78cf82447cc5c2fe6822c82f6f9e59c4.zip
cpython-ca848bbf78cf82447cc5c2fe6822c82f6f9e59c4.tar.gz
cpython-ca848bbf78cf82447cc5c2fe6822c82f6f9e59c4.tar.bz2
[3.12] gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) (#109122)
gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) add guard so that ``Enum('bar')`` raises a TypeError instead of creating a new enum class called `bar`. To create the new but empty class, use: huh = Enum('bar', names=()) (cherry picked from commit c74e440168fab9bf91346471087a394af13fa2db) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Diffstat (limited to 'Python/generated_cases.c.h')
0 files changed, 0 insertions, 0 deletions