This commit is contained in:
Steve Dower 2016-01-16 12:41:03 -08:00
commit 6932b5b3a3

View file

@ -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.