Skip to content

Clear all 8 mypy errors in cobol_jcl_auditor.py (#432 session 11) - #456

Merged
squid-protocol merged 1 commit into
mainfrom
fix/432-cobol-jcl-auditor-typing
Jul 25, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/432-cobol-jcl-auditor-typing

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

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

Two untyped dict-literal accumulators mixed int/set/dict values, so mypy widened both to Dict[str, object] -- every downstream arithmetic op, .add() call, and indexed assignment then failed:

  • metrics in parse_jcl_intent() ({"lines_of_code": 0, "exec_pgms": set(), "data_definitions": set()})
  • report in audit_zero_trust_jcls() ({"audited": 0, ..., "program_breakdown": {}})

Same shape of root cause as sessions 5/6/8/9's local-dict fixes; annotated both Dict[str, Any].

Baseline: 49 -> 41 unique entries.

Test plan

  • mypy gitgalaxy/ --ignore-missing-imports (fresh .mypy_cache) in the CI-matching minimal venv: all 8 errors resolved, no fan-out regressions elsewhere
  • python tests/mypy_audit.py --ci: passes against the regenerated 41-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

Two untyped dict-literal accumulators (metrics in parse_jcl_intent,
report in audit_zero_trust_jcls) mixed int/set/dict values, so mypy
widened both to Dict[str, object] -- every downstream arithmetic
op, .add() call, and indexed assignment then failed. Same shape of
root cause as sessions 5/6/8/9's local-dict fixes; annotated both
as Dict[str, Any].

Baseline: 49 -> 41 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 ecb9a3a into main Jul 25, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the fix/432-cobol-jcl-auditor-typing branch July 25, 2026 19:20
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