From 28e889994036e2f55cb8eee9a36d4d8cda177cbf Mon Sep 17 00:00:00 2001 From: Steffen Rehberg Date: Mon, 27 Dec 2021 13:29:53 +0100 Subject: [PATCH] MNT: Set CapStyle member names automatically This was certainly overlooked in #18544, otherwise it would make no sense to derive CapStyle from _AutoStringNameEnum. --- lib/matplotlib/_enums.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/_enums.py b/lib/matplotlib/_enums.py index 3e4393e7979d..b1361c6f72ba 100644 --- a/lib/matplotlib/_enums.py +++ b/lib/matplotlib/_enums.py @@ -148,9 +148,9 @@ class CapStyle(str, _AutoStringNameEnum): CapStyle.demo() """ - butt = 'butt' - projecting = 'projecting' - round = 'round' + butt = auto() + projecting = auto() + round = auto() @staticmethod def demo():