Skip to content

Commit 98da29b

Browse files
fix(types): add concrete generics and fix Text.assemble usage (mypy clean) (#26)
1 parent c7849a9 commit 98da29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff_risk_dashboard/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _exit_code(risk: str) -> int:
2222
return {"green": 0, "yellow": 1, "red": 2}.get(risk, 0)
2323

2424

25-
def _summarize(apv: dict) -> dict:
25+
def _summarize(apv: dict) -> dict[str, int]:
2626
counts: dict[str, int] = {}
2727
for k, v in (apv.get("by_severity") or {}).items():
2828
counts[str(k).upper()] = int(v or 0)

0 commit comments

Comments
 (0)