Skip to content

Commit

Permalink
Merge pull request #121 from GitGuardian/plalanne/-/fix-typing-issue-…
Browse files Browse the repository at this point in the history
…on-severity

Add info as a possible value for Severity
  • Loading branch information
agateau-gg authored Nov 7, 2024
2 parents 94122ce + da26caa commit b567ad4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Removed
- A bullet item for the Removed category.
-->
<!--
### Added
- A bullet item for the Added category.
-->
<!--
### Changed
- A bullet item for the Changed category.
-->
<!--
### Deprecated
- A bullet item for the Deprecated category.
-->

### Fixed

- Add missing value "info" to Severity model (#120).

<!--
### Security
- A bullet item for the Security category.
-->
2 changes: 1 addition & 1 deletion pygitguardian/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ class Detector(Base, FromDictMixin):
detector_group_display_name: str


Severity = Literal["low", "medium", "high", "critical", "unknown"]
Severity = Literal["info", "low", "medium", "high", "critical", "unknown"]
ValidityStatus = Literal["valid", "invalid", "failed_to_check", "no_checker", "unknown"]
IncidentStatus = Literal["IGNORED", "TRIGGERED", "RESOLVED", "ASSIGNED"]
Tag = Literal[
Expand Down

0 comments on commit b567ad4

Please sign in to comment.