Skip to content

Clear all 4 mypy errors in gitgalaxy_config.py (#432 session 14) - #462

Merged
squid-protocol merged 1 commit into
mainfrom
fix/432-gitgalaxy-config-typing
Jul 25, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/432-gitgalaxy-config-typing

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_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 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 elsewhere
  • python tests/mypy_audit.py --ci: passes against the regenerated 27-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

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.
@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 67c5cfc into main Jul 25, 2026
26 checks passed
@squid-protocol
squid-protocol deleted the fix/432-gitgalaxy-config-typing branch July 25, 2026 19:42
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