diff options
-rw-r--r-- | Doc/library/enum.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/enum.rst b/Doc/library/enum.rst index 377ac3e..1fa6e73 100644 --- a/Doc/library/enum.rst +++ b/Doc/library/enum.rst @@ -754,7 +754,7 @@ Enum's boolean evaluation depend on the member's value add the following to your class:: def __bool__(self): - return bool(self._value_) + return bool(self.value) The :attr:`__members__` attribute is only available on the class. |