Repository navigation
Clear all 4 mypy errors in gitgalaxy_config.py (#432 session 14) - #462
Merged
Merged
Conversation
Four user-facing config placeholders had no annotations, so mypy couldn't infer an element type from their empty/comment-only literals: APPROVED_IMPORTS, BLACKLISTED_IMPORTS, and DENYLIST_PATTERNS are List[str] (package names / glob patterns, confirmed against their consumers in supply_chain_firewall.py, binary_anomaly_detector.py, and vault_sentinel.py). PROJECT_STORIES is Dict[str, Any] -- its own comment says it's a free-form "context and UI story payload" slot, and its only consumer (gpu_recorder.py) reads it generically via .get(). Baseline: 31 -> 27 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 14 of the mypy cleanup epic (#432).
Four user-facing config placeholders had no annotations, so mypy couldn't infer an element type from their empty/comment-only literals:
APPROVED_IMPORTS,BLACKLISTED_IMPORTS,DENYLIST_PATTERNSareList[str](package names / glob patterns, confirmed against their consumers insupply_chain_firewall.py,binary_anomaly_detector.py, andvault_sentinel.py).PROJECT_STORIESisDict[str, Any]-- its own comment describes it as a free-form "context and UI story payload" slot, and its only consumer (gpu_recorder.py) reads it generically via.get().Baseline: 31 -> 27 unique entries.
Test plan
mypy gitgalaxy/ --ignore-missing-imports(fresh.mypy_cache) in the CI-matching minimal venv: all 4 errors resolved, no fan-out regressions elsewherepython tests/mypy_audit.py --ci: passes against the regenerated 27-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