We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7849a9 commit 98da29bCopy full SHA for 98da29b
src/diff_risk_dashboard/cli.py
@@ -22,7 +22,7 @@ def _exit_code(risk: str) -> int:
22
return {"green": 0, "yellow": 1, "red": 2}.get(risk, 0)
23
24
25
-def _summarize(apv: dict) -> dict:
+def _summarize(apv: dict) -> dict[str, int]:
26
counts: dict[str, int] = {}
27
for k, v in (apv.get("by_severity") or {}).items():
28
counts[str(k).upper()] = int(v or 0)
0 commit comments