Skip to content

Clear all 3 mypy errors in ai_appsec_sensor.py (#432 session 15) - #464

Merged
squid-protocol merged 1 commit into
mainfrom
fix/432-ai-appsec-sensor-typing
Jul 25, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/432-ai-appsec-sensor-typing

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Session 15 of the mypy cleanup epic (#432).

appsec_report in hunt_threats() mixed bool and List[str] values in its dict literal, so mypy widened it to Dict[str, object] -- .append() on "critical_warnings" then failed. Same shape of fix as sessions 5/6/8/9/11/13: a Dict[str, Any] annotation at the accumulator's declaration.

Baseline: 27 -> 24 unique entries.

Test plan

  • mypy gitgalaxy/ --ignore-missing-imports (fresh .mypy_cache) in the CI-matching minimal venv: all 3 errors resolved, no fan-out regressions elsewhere
  • python tests/mypy_audit.py --ci: passes against the regenerated 24-entry baseline
  • flake8 . --count --select=E9,F63,F7,F82: 0
  • python tests/dead_key_audit.py --ci: no new findings
  • Full pytest tests/ -q in the full-precision venv: run in progress, will confirm green before merge

🤖 Generated with Claude Code

appsec_report (hunt_threats) mixed bool and List[str] values in its
dict literal, so mypy widened it to Dict[str, object] -- .append()
on "critical_warnings" then failed. Same shape of fix as sessions
5/6/8/9/11/13: Dict[str, Any] annotation at the accumulator's
declaration.

Baseline: 27 -> 24 unique entries.
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 850dadd into main Jul 25, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the fix/432-ai-appsec-sensor-typing branch July 25, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant