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(): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy