We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d55d682 commit 29b1affCopy full SHA for 29b1aff
Doc/library/enum.rst
@@ -654,7 +654,7 @@ value and let :class:`Flag` select an appropriate value.
654
Like :class:`IntFlag`, if a combination of :class:`Flag` members results in no
655
flags being set, the boolean evaluation is :data:`False`::
656
657
- >>> from enum import Flag
+ >>> from enum import Flag, auto
658
>>> class Color(Flag):
659
... RED = auto()
660
... BLUE = auto()
0 commit comments