8000
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 27a7d5e commit 3ac856eCopy full SHA for 3ac856e
Doc/library/enum.rst
@@ -406,18 +406,18 @@ Data Types
406
with an *IntEnum* member, the resulting value loses its enumeration status.
407
408
>>> from enum import IntEnum
409
- >>> class Numbers(IntEnum):
+ >>> class Number(IntEnum):
410
... ONE = 1
411
... TWO = 2
412
... THREE = 3
413
...
414
- >>> Numbers.THREE
415
- <Numbers.THREE: 3>
416
- >>> Numbers.ONE + Numbers.TWO
+ >>> Number.THREE
+ <Number.THREE: 3>
+ >>> Number.ONE + Number.TWO
417
3
418
- >>> Numbers.THREE + 5
+ >>> Number.THREE + 5
419
8
420
- >>> Numbers.THREE == 3
+ >>> Number.THREE == 3
421
True
422
423
.. note::
0 commit comments