Repository navigation
Clear all 8 mypy errors in cobol_jcl_auditor.py (#432 session 11) - #456
Merged
Merged
Conversation
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.
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:metricsinparse_jcl_intent()({"lines_of_code": 0, "exec_pgms": set(), "data_definitions": set()})reportinaudit_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 elsewherepython tests/mypy_audit.py --ci: passes against the regenerated 41-entry baselineflake8 . --count --select=E9,F63,F7,F82: 0python tests/dead_key_audit.py --ci: no new findingspytest tests/ -qin the full-precision venv: run in progress, will confirm green before merge🤖 Generated with Claude Code