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 614f8ef commit 01f4505Copy full SHA for 01f4505
Doc/library/enum.rst
@@ -464,7 +464,7 @@ Data Types
464
465
Adds a new name as an alias to an existing member::
466
467
- >>> Color._add_alias_(Color.RED, "ERROR")
+ >>> Color.RED._add_alias_("ERROR")
468
>>> Color.ERROR
469
<Color.RED: 1>
470
@@ -476,7 +476,7 @@ Data Types
476
477
Adds a new value as an alias to an existing member::
478
479
- >>> Color._add_value_alias_(Color.RED, 42)
+ >>> Color.RED._add_value_alias_(42)
480
>>> Color(42)
481
482
0 commit comments