Skip to content

enum.Flag: default for boundary is incorrect #101739

@huwcbjones

Description

@huwcbjones

In c9480d5 the default was changed from STRICT to CONFORM, but the docs were never updated to reflect this.
See https://docs.python.org/3.11/library/enum.html#enum.FlagBoundary

STRICT
Out-of-range values cause a ValueError to be raised. This is the default for Flag:

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions