diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2022-12-08 06:58:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 06:58:08 (GMT) |
commit | ded02ca54d7bfa32c8eab0871d56e4547cd356eb (patch) | |
tree | 3f4b0be649ed020c55b47a9dd5e7204fa12820b9 /Misc | |
parent | cce836296016463032495c6ca739ab469ed13d3c (diff) | |
download | cpython-ded02ca54d7bfa32c8eab0871d56e4547cd356eb.zip cpython-ded02ca54d7bfa32c8eab0871d56e4547cd356eb.tar.gz cpython-ded02ca54d7bfa32c8eab0871d56e4547cd356eb.tar.bz2 |
gh-100098: [Enum] insist on actual tuples, no subclasses, for auto (GH-100099)
When checking for auto() instances, only top-level usage is supported,
which means either alone or as part of a regular tuple. Other
containers, such as lists, dicts, or namedtuples, will not have auto()
transformed into a value.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-12-08-06-18-06.gh-issue-100098.uBvPlp.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-12-08-06-18-06.gh-issue-100098.uBvPlp.rst b/Misc/NEWS.d/next/Library/2022-12-08-06-18-06.gh-issue-100098.uBvPlp.rst new file mode 100644 index 0000000..256f2bc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-12-08-06-18-06.gh-issue-100098.uBvPlp.rst @@ -0,0 +1 @@ +Fix ``tuple`` subclasses being cast to ``tuple`` when used as enum values. |