From cb13c659d58c8e30484b8b0185b7e494434de15c Mon Sep 17 00:00:00 2001 From: Brandon Chinn Date: Thu, 14 Apr 2022 12:10:32 -0700 Subject: [PATCH] Only show enum member's value --- enum_tools/autoenum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enum_tools/autoenum.py b/enum_tools/autoenum.py index 6265122..57a9718 100644 --- a/enum_tools/autoenum.py +++ b/enum_tools/autoenum.py @@ -502,7 +502,7 @@ def add_directive_header(self, sig: str) -> None: # Workaround for https://github.com/sphinx-doc/sphinx/issues/9272 # which broke Enum displays in 4.1.0 - objrepr = memory_address_re.sub('', repr(self.object)).replace('\n', ' ') + objrepr = memory_address_re.sub('', repr(self.object.value)).replace('\n', ' ') self.add_line(f' :value: {objrepr}', self.get_sourcename())