Improve enum.Flag code example (GH-5167) (GH-5171)

The code example that demonstrate how to use enum.Flag was missing
the import of enum.auto.
(cherry picked from commit 0f31c74fcf)
This commit is contained in:
Miss Islington (bot) 2018-01-12 20:23:21 -08:00 committed by Mariatta
parent d55d6825d7
commit 29b1aff718
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ value and let :class:`Flag` select an appropriate value.
Like :class:`IntFlag`, if a combination of :class:`Flag` members results in no
flags being set, the boolean evaluation is :data:`False`::
>>> from enum import Flag
>>> from enum import Flag, auto
>>> class Color(Flag):
... RED = auto()
... BLUE = auto()