Skip to content

Commit 4510af2

Browse files
committed
fix(typing): # We add info as a possible value for Severity. This could cause a crash on some incidents
1 parent a03cb02 commit 4510af2

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!--
2+
A new scriv changelog fragment.
3+
4+
Uncomment the section that is right (remove the HTML comment wrapper).
5+
-->
6+
7+
<!--
8+
### Removed
9+
10+
- A bullet item for the Removed category.
11+
12+
-->
13+
<!--
14+
### Added
15+
16+
- A bullet item for the Added category.
17+
18+
-->
19+
<!--
20+
### Changed
21+
22+
- A bullet item for the Changed category.
23+
24+
-->
25+
<!--
26+
### Deprecated
27+
28+
- A bullet item for the Deprecated category.
29+
30+
-->
31+
32+
### Fixed
33+
34+
- Add missing value "info" to Severity model.
35+
36+
<!--
37+
### Security
38+
39+
- A bullet item for the Security category.
40+
41+
-->

pygitguardian/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ class Detector(Base, FromDictMixin):
812812
detector_group_display_name: str
813813

814814

815-
Severity = Literal["low", "medium", "high", "critical", "unknown"]
815+
Severity = Literal["info", "low", "medium", "high", "critical", "unknown"]
816816
ValidityStatus = Literal["valid", "invalid", "failed_to_check", "no_checker", "unknown"]
817817
IncidentStatus = Literal["IGNORED", "TRIGGERED", "RESOLVED", "ASSIGNED"]
818818
Tag = Literal[

0 commit comments

Comments
 (0)