Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ae4ea5

Browse files
committed
use public 'value'
1 parent 51578c0 commit 2ae4ea5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to
754754
your class::
755755

756756
def __bool__(self):
757-
return bool(self._value_)
757+
return bool(self.value)
758758

759759
The :attr:`__members__` attribute is only available on the class.
760760

0 commit comments

Comments
 (0)