gh-131045: [Enum] fix flag containment checks when using values by ethanfurman · Pull Request #131053 · python/cpython · GitHub

github.com

Tin mới

ethanfurman:enum-contains

miss-islington-app

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

enum.Flag.__contains__ changed behavior since python 3.12 #131045

[Enum] fix flag containment checks when using values

needs backport to 3.12

needs backport to 3.12

needs backport to 3.13

needs backport to 3.13

awaiting core review

awaiting core review

View reviewed changes

Apply suggestions from code review

Update Lib/test/test_enum.py

Merge branch 'main' into enum-contains

: [Enum] fix flag containment checks when using values (

bedevere-app Bot commented Mar 12, 2025

bedevere-app Bot commented Mar 12, 2025

GH-131167 is a backport of this pull request to the 3.13 branch.

: [Enum] fix flag containment checks when using values (

: [Enum] fix flag containment checks when using values (

: [Enum] fix flag containment checks when using values (

Enum _missing_ function changes __contains__ behaviour #132684