Skip to content

Commit d7fc288

Browse files
tirth8205claude
andcommitted
fix: correct mypy type: ignore error codes (arg-type, not return-value)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 14a9185 commit d7fc288

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code_review_graph/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def find_hub_nodes(store: GraphStore, top_n: int = 10) -> list[dict]:
4949
})
5050

5151
scored.sort(
52-
key=lambda x: x.get("total_degree", 0), # type: ignore[return-value]
52+
key=lambda x: x.get("total_degree", 0), # type: ignore[arg-type]
5353
reverse=True,
5454
)
5555
return scored[:top_n]
@@ -184,7 +184,7 @@ def find_knowledge_gaps(store: GraphStore) -> dict[str, list[dict]]:
184184
"degree": d,
185185
})
186186
untested_hotspots.sort(
187-
key=lambda x: x.get("degree", 0), # type: ignore[return-value]
187+
key=lambda x: x.get("degree", 0), # type: ignore[arg-type]
188188
reverse=True,
189189
)
190190

0 commit comments

Comments
 (0)