Skip to content

Commit 0c1aa86

Browse files
authored
Merge pull request matplotlib#22054 from StefRe/mnt/_enums
MNT: Set CapStyle member names automatically
2 parents 1708956 + 28e8899 commit 0c1aa86

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)