mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
15 lines
299 B
Python
15 lines
299 B
Python
from enum import Enum
|
|
|
|
|
|
class StringEnum(str, Enum):
|
|
def __str__(self):
|
|
return self.value
|
|
|
|
@classmethod
|
|
def values(cls):
|
|
return list(map(str, cls))
|
|
|
|
# noinspection PyMethodParameters
|
|
def _generate_next_value_(name, start, count, last_values):
|
|
return name
|