Skip to content

Commit 28e8899

Browse files
committed
MNT: Set CapStyle member names automatically
This was certainly overlooked in matplotlib#18544, otherwise it would make no sense to derive CapStyle from _AutoStringNameEnum.
1 parent 70957d8 commit 28e8899

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/_enums.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ class CapStyle(str, _AutoStringNameEnum):
148148
CapStyle.demo()
149149
150150
"""
151-
butt = 'butt'
152-
projecting = 'projecting'
153-
round = 'round'
151+
butt = auto()
152+
projecting = auto()
153+
round = auto()
154154

155155
@staticmethod
156156
def demo():

0 commit comments

Comments
 (0)