Repository navigation
Clear all 4 mypy errors in dev_agent_firewall.py (#432 session 13) - #460
Merged
Merged
Conversation
guardrails (evaluate_ecosystem) mixed bool and List[str] values in its dict literal, so mypy widened it to Dict[str, object] -- .append() on the "warnings" list then failed. Same shape of fix as prior sessions: Dict[str, Any] annotation at the accumulator's declaration. Baseline: 35 -> 31 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 13 of the mypy cleanup epic (#432).
guardrailsinevaluate_ecosystem()mixedboolandList[str]values in its dict literal, so mypy widened it toDict[str, object]--.append()on the"warnings"list then failed. Same shape of fix as prior sessions: aDict[str, Any]annotation at the accumulator's declaration.Baseline: 35 -> 31 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 31-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