Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2981b1f

Browse filesBrowse files
tacaswellgreglucas
andauthored
MNT: remove auto-string magic all together
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
1 parent 5837e94 commit 2981b1f
Copy full SHA for 2981b1f

File tree

1 file changed

+6
-10
lines changed
Filter options

1 file changed

+6
-10
lines changed

‎lib/matplotlib/_enums.py

Copy file name to clipboardExpand all lines: lib/matplotlib/_enums.py
+6-10Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from matplotlib import _docstring
1515

1616

17-
class __AutoStringNameEnum(Enum):
1817
"""Automate the ``name = 'name'`` part of making a (str, Enum)."""
1918

2019

@@ -73,9 +72,9 @@ class JoinStyle(str, Enum):
7372
7473
"""
7574

76-
def _generate_next_value_(name, start, count, last_values):
77-
return name
78-
75+
miter = "miter"
76+
round = "round"
77+
bevel = "bevel"
7978
miter = auto()
8079
round = auto()
8180
bevel = auto()
@@ -148,12 +147,9 @@ class CapStyle(str, Enum):
148147
CapStyle.demo()
149148
150149
"""
151-
def _generate_next_value_(name, start, count, last_values):
152-
return name
153-
154-
butt = auto()
155-
projecting = auto()
156-
round = auto()
150+
butt = "butt"
151+
projecting = "projecting"
152+
round = "round"
157153

158154
@staticmethod
159155
def demo():

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.