]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-93035: [Enum] Fix IntFlag crash when no single-bit members (GH-93076) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 25 May 2022 17:50:24 +0000 (10:50 -0700)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 17:50:24 +0000 (10:50 -0700)
commit37a7f1b0997466bb088df82f5fe35fe6d1cebb22
tree0766f0a20bbbd52be3fae48925a19814082054f9
parent0fb70ce19197e97b6254ecd2c12f6e8c5b07ef5b
[3.11] gh-93035: [Enum] Fix IntFlag crash when no single-bit members (GH-93076) (GH-93197)

`EnumType` attempts to create a custom docstring for each enum/flag, but that was failing with pathological flags that had no members (only multi-bit aliases).
(cherry picked from commit 08cfc3dabf0f81a4494cd0d697befc7d0dec77b7)

Co-authored-by: Tobin Yehle <tobinyehle@gmail.com>
Lib/enum.py