]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38659: [Enum] do not check '_inverted_' during simple test (GH-25566)
authorEthan Furman <ethan@stoneleaf.us>
Sat, 24 Apr 2021 02:08:22 +0000 (19:08 -0700)
committerGitHub <noreply@github.com>
Sat, 24 Apr 2021 02:08:22 +0000 (19:08 -0700)
commit6c681e1a4aa2dbca61be9a26c9257d7d25fa29a7
tree9fb43b61a6c399c92b54aacbdb7aecdaf5e16c43
parent481994078fbf61317fe35456e9a1b8a960e7dfa0
bpo-38659: [Enum] do not check '_inverted_' during simple test (GH-25566)

Depending on usage, it's possible for Flag members to have the _inverted_ attribute when they are testing, while the Flag being testing against will not have that attribute on its members -- so skip that comparison.
Lib/enum.py