diff options
Diffstat (limited to '')
| -rw-r--r-- | project/linkage.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/project/linkage.py b/project/linkage.py index dfa474d..b952031 100644 --- a/project/linkage.py +++ b/project/linkage.py @@ -4,18 +4,15 @@ # Distributed under the MIT License. import argparse -from enum import Enum +from enum import auto, StrEnum import logging from project.os import on_linux_like -class Linkage(Enum): - STATIC = "static" - SHARED = "shared" - - def __str__(self): - return str(self.value) +class Linkage(StrEnum): + STATIC = auto() + SHARED = auto() @staticmethod def all(): |
