Skip to content

Commit

Permalink
Fix: Add missing __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann committed Nov 8, 2023
1 parent a01a63c commit 36172ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pontos/nvd/models/cve_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from pontos.models import Model


@dataclass
class EventName(str, Enum):
INITAL_ANALYSIS = "Initial Analysis"
REANALYSIS = "Reanalysis"
Expand All @@ -39,6 +38,9 @@ class EventName(str, Enum):
CVE_REJECTED = "CVE Rejected"
CVE_UNREJECT = "CVE Unreject"

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

Check warning on line 42 in pontos/nvd/models/cve_change.py

View check run for this annotation

Codecov / codecov/patch

pontos/nvd/models/cve_change.py#L42

Added line #L42 was not covered by tests


@dataclass
class Detail:
Expand Down

0 comments on commit 36172ad

Please sign in to comment.