File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -576,7 +576,7 @@ Data Types
576
576
... NEON = 31
577
577
Traceback (most recent call last):
578
578
...
579
- ValueError: invalid Flag 'Color': ' WHITE' is missing a named flag for value 8; 'NEON' is missing named flags for values 8, 16
579
+ ValueError: invalid Flag 'Color': aliases WHITE and NEON are missing combined values of 0x18 [use enum.show_flag_values(value) for details]
580
580
581
581
.. note ::
582
582
Original file line number Diff line number Diff line change @@ -1637,7 +1637,7 @@ def __call__(self, enumeration):
1637
1637
else :
1638
1638
value = 'combined values of 0x%x' % missing_value
1639
1639
raise ValueError (
1640
- 'invalid Flag %r: %s %s [use ` enum.show_flag_values(value)` for details]'
1640
+ 'invalid Flag %r: %s %s [use enum.show_flag_values(value) for details]'
1641
1641
% (cls_name , alias , value )
1642
1642
)
1643
1643
return enumeration
Original file line number Diff line number Diff line change @@ -3614,7 +3614,7 @@ class Bizarre(Flag):
3614
3614
self .assertEqual (Bizarre .d .value , 6 )
3615
3615
with self .assertRaisesRegex (
3616
3616
ValueError ,
3617
- "invalid Flag 'Bizarre': aliases b and d are missing combined values of 0x3 .use ` enum.show_flag_values.value.` for details." ,
3617
+ "invalid Flag 'Bizarre': aliases b and d are missing combined values of 0x3 .use enum.show_flag_values.value. for details." ,
3618
3618
):
3619
3619
@verify (NAMED_FLAGS )
3620
3620
class Bizarre (Flag ):
@@ -3633,7 +3633,7 @@ class Bizarre(IntFlag):
3633
3633
self .assertEqual (Bizarre .d .value , 6 )
3634
3634
with self .assertRaisesRegex (
3635
3635
ValueError ,
3636
- "invalid Flag 'Bizarre': alias d is missing value 0x2 .use ` enum.show_flag_values.value.` for details." ,
3636
+ "invalid Flag 'Bizarre': alias d is missing value 0x2 .use enum.show_flag_values.value. for details." ,
3637
3637
):
3638
3638
@verify (NAMED_FLAGS )
3639
3639
class Bizarre (IntFlag ):
You can’t perform that action at this time.
0 commit comments