summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorEthan Furman <ethan@stoneleaf.us>2023-04-03 21:57:42 (GMT)
committerGitHub <noreply@github.com>2023-04-03 21:57:42 (GMT)
commit5ffc1e5a21de9a30566095386236db44695d184a (patch)
tree613c9f9e3f5f89f304626c4cf468d6b1d2aaf44e /Lib/enum.py
parentd3a7732dd54c27ae523bef73efbb0c580ce2fbc0 (diff)
downloadcpython-5ffc1e5a21de9a30566095386236db44695d184a.zip
cpython-5ffc1e5a21de9a30566095386236db44695d184a.tar.gz
cpython-5ffc1e5a21de9a30566095386236db44695d184a.tar.bz2
gh-98298, gh-74730: [Enum] update docs (GH-103163)
fix FlagBoundary statements add warning about reloading modules and enum identity
Diffstat (limited to 'Lib/enum.py')
-rw-r--r--Lib/enum.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/enum.py b/Lib/enum.py
index b8ea7af..9d836c7 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1301,10 +1301,10 @@ def _reduce_ex_by_global_name(self, proto):
class FlagBoundary(StrEnum):
"""
control how out of range values are handled
- "strict" -> error is raised [default for Flag]
- "conform" -> extra bits are discarded
- "eject" -> lose flag status [default for IntFlag]
- "keep" -> keep flag status and all bits
+ "strict" -> error is raised
+ "conform" -> extra bits are discarded [default for Flag]
+ "eject" -> lose flag status
+ "keep" -> keep flag status and all bits [default for IntFlag]
"""
STRICT = auto()
CONFORM = auto()