File tree Expand file tree Collapse file tree 2 files changed +14
-23
lines changed Expand file tree Collapse file tree 2 files changed +14
-23
lines changed Original file line number Diff line number Diff line change 1010they define.
1111"""
1212
13- from enum import Enum , auto
13+ from enum import Enum
1414from matplotlib import _docstring
1515
1616
17- class __AutoStringNameEnum (Enum ):
18- """Automate the ``name = 'name'`` part of making a (str, Enum)."""
19-
20-
2117class JoinStyle (str , Enum ):
2218 """
2319 Define how the connection between two line segments is drawn.
@@ -73,12 +69,9 @@ class JoinStyle(str, Enum):
7369
7470 """
7571
76- def _generate_next_value_ (name , start , count , last_values ):
77- return name
78-
79- miter = auto ()
80- round = auto ()
81- bevel = auto ()
72+ miter = "miter"
73+ round = "round"
74+ bevel = "bevel"
8275
8376 @staticmethod
8477 def demo ():
@@ -148,12 +141,9 @@ class CapStyle(str, Enum):
148141 CapStyle.demo()
149142
150143 """
151- def _generate_next_value_ (name , start , count , last_values ):
152- return name
153-
154- butt = auto ()
155- projecting = auto ()
156- round = auto ()
144+ butt = "butt"
145+ projecting = "projecting"
146+ round = "round"
157147
158148 @staticmethod
159149 def demo ():
Original file line number Diff line number Diff line change @@ -3,16 +3,17 @@ from enum import Enum
33
44
55class JoinStyle (str , Enum ):
6- miter = cast ( str , ...)
7- round = cast ( str , ...)
8- bevel = cast ( str , ...)
6+ miter = "miter"
7+ round = "round"
8+ bevel = "bevel"
99 @staticmethod
1010 def demo () -> None : ...
1111
1212
1313class CapStyle (str , Enum ):
14- butt = cast (str , ...)
15- projecting = cast (str , ...)
16- round = cast (str , ...)
14+ butt = "butt"
15+ projecting = "projecting"
16+ round = "round"
17+
1718 @staticmethod
1819 def demo () -> None : ...
You can’t perform that action at this time.
0 commit comments