Skip to content

Commit

Permalink
using str auto enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Sep 20, 2024
1 parent 9973d68 commit 9f2854f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
from enum import StrEnum, auto
from enum import auto

from models_library.projects import ProjectID
from models_library.projects_nodes_io import NodeID
from models_library.services_types import ServicePortKey
from models_library.utils.enums import StrAutoEnum
from pydantic import BaseModel


class OutputStatus(StrEnum):
class OutputStatus(StrAutoEnum):
UPLOAD_STARTED = auto()
UPLOAD_WAS_ABORTED = auto()
UPLOAD_FINISHED_SUCCESSFULLY = auto()
UPLOAD_FINISHED_WITH_ERRROR = auto()


class InputStatus(StrEnum):
class InputStatus(StrAutoEnum):
DOWNLOAD_STARTED = auto()
DOWNLOAD_WAS_ABORTED = auto()
DOWNLOAD_FINISHED_SUCCESSFULLY = auto()
Expand Down

0 comments on commit 9f2854f

Please sign in to comment.