Skip to content

Chore: Mass mypy annotation cleanup and type safety - #301

Merged
squid-protocol merged 1 commit into
mainfrom
chore/mypy-mass-cleanup
Jul 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
chore/mypy-mass-cleanup

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Description of Structural Changes

  • Auto-Fixer: Executed no_implicit_optional across the gitgalaxy/ directory to automatically resolve dozens of PEP 484 compliance errors where default None parameters lacked the Optional[] wrapper.
  • Type Safety: Explicitly annotated the local ir dictionary inside cobol_refractor_controller.py as Dict[str, Any] to prevent mypy from strictly inferring it as Dict[str, Dict[str, str]], resolving false-positive assignment errors.

Visual Observatory Testing

  • I tested the output JSON on GitGalaxy.io OR the Airgap Observatory.
  • Flexbox constraints, HUD elements, and 3D rendering remain intact.

The Differential Scan Acknowledgement

  • I understand that my PR will be subjected to a Full Differential Scan.
  • I believe these changes will measurably improve the engine's Accuracy, Speed, Utility, or Ethos without causing regressions.

Runs the no_implicit_optional auto-fixer across the repo to resolve PEP 484 compliance. Also explicitly types the 'ir' payload in cobol_refractor_controller.py to prevent downstream type-mutation crashes.
@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 ed27cd1 into main Jul 22, 2026
22 checks passed
@squid-protocol
squid-protocol deleted the chore/mypy-mass-cleanup branch July 22, 2026 20:08
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