summaryrefslogtreecommitdiffstats
path: root/Lib/enum.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-04-03 22:27:33 (GMT)
committerGitHub <noreply@github.com>2023-04-03 22:27:33 (GMT)
commitcf72cc25f600183c69e3639e78cfae3571f8d4d0 (patch)
treec5678efdf1393143c6b6d7b2106a4661271b90ab /Lib/enum.py
parent823622212eb258fcec467db56f6e726d841297b3 (diff)
downloadcpython-cf72cc25f600183c69e3639e78cfae3571f8d4d0.zip
cpython-cf72cc25f600183c69e3639e78cfae3571f8d4d0.tar.gz
cpython-cf72cc25f600183c69e3639e78cfae3571f8d4d0.tar.bz2
gh-98298, gh-74730: [Enum] update docs (GH-103163)
fix FlagBoundary statements add warning about reloading modules and enum identity (cherry picked from commit 5ffc1e5a21de9a30566095386236db44695d184a) Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
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 7657550..9138e50 100644
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1302,10 +1302,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()