Commit 2ae4ea54 authored by Ethan Furman's avatar Ethan Furman

use public 'value'

parent 51578c0c
...@@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to ...@@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to
your class:: your class::
def __bool__(self): def __bool__(self):
return bool(self._value_) return bool(self.value)
The :attr:`__members__` attribute is only available on the class. The :attr:`__members__` attribute is only available on the class.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment