Skip to content

Commit

Permalink
Fix issue where undocumented Enum members still had the parent's docs…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
domdfcoding committed Sep 30, 2020
1 parent 6ba0383 commit aef8d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enum_tools/autoenum.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def generate(
self.indent += self.content_indent

# Add the value's docstring
if self.object.__doc__ and self.object.__doc__ != self.object.__class__:
if self.object.__doc__ and self.object.__doc__ != self.object.__class__.__doc__:
self.add_line(self.object.__doc__, sourcename)
self.add_line('', sourcename)

Expand Down

0 comments on commit aef8d93

Please sign in to comment.