We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3bc95 commit cd13f73Copy full SHA for cd13f73
Doc/library/enum.rst
@@ -404,17 +404,18 @@ Data Types
404
with an *IntEnum* member, the resulting value loses its enumeration status.
405
406
>>> from enum import IntEnum
407
- >>> class Numbers(IntEnum):
+ >>> class Number(IntEnum):
408
... ONE = 1
409
... TWO = 2
410
... THREE = 3
411
- >>> Numbers.THREE
412
- <Numbers.THREE: 3>
413
- >>> Numbers.ONE + Numbers.TWO
+ ...
+ >>> Number.THREE
+ <Number.THREE: 3>
414
+ >>> Number.ONE + Number.TWO
415
3
- >>> Numbers.THREE + 5
416
+ >>> Number.THREE + 5
417
8
- >>> Numbers.THREE == 3
418
+ >>> Number.THREE == 3
419
True
420
421
.. note::
0 commit comments