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 8463cb5 commit a71b117Copy full SHA for a71b117
Lib/test/test_enum.py
@@ -4376,10 +4376,16 @@ class SimpleColor:
4376
CYAN = 1
4377
MAGENTA = 2
4378
YELLOW = 3
4379
+ @bltns.property
4380
+ def zeroth(self):
4381
+ return 'zeroed %s' % self.name
4382
class CheckedColor(Enum):
4383
4384
4385
4386
4387
4388
4389
self.assertTrue(_test_simple_enum(CheckedColor, SimpleColor) is None)
4390
SimpleColor.MAGENTA._value_ = 9
4391
self.assertRaisesRegex(
0 commit comments