Skip to content

Commit

Permalink
Change: Use StrEnum for CVE Change EventName
Browse files Browse the repository at this point in the history
This enum already used the same pattern as our new StrEnum class.
  • Loading branch information
bjoernricks committed Nov 17, 2023
1 parent 3073728 commit 4bb0657
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pontos/nvd/models/cve_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from typing import Optional
from uuid import UUID

from pontos.models import Model
from pontos.models import Model, StrEnum


class EventName(str, Enum):
class EventName(StrEnum):
CVE_RECEIVED = "CVE Received"
INITAL_ANALYSIS = "Initial Analysis"
REANALYSIS = "Reanalysis"
Expand All @@ -25,9 +24,6 @@ class EventName(str, Enum):
CVE_REJECTED = "CVE Rejected"
CVE_UNREJECTED = "CVE Unrejected"

def __str__(self) -> str:
return self.value


@dataclass
class Detail:
Expand Down

0 comments on commit 4bb0657

Please sign in to comment.