commit | c74e440168fab9bf91346471087a394af13fa2db | [log] [tgz] |
---|---|---|
author | Ethan Furman <ethan@stoneleaf.us> | Thu Sep 07 18:19:03 2023 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 07 18:19:03 2023 -0700 |
tree | e9afe2d0f55fff41ed232a524b6ef76694dc76b2 | |
parent | b9831e5c98de280870b6d932033b868ef56fa2fa [diff] |
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=())