fix(mypy): clear var-annotated bucket (closes #117 subset) #127
No reviewers
Labels
No labels
agentic-osint
audit
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:preflight
blocked:verify-failed
bug
chore
deferred
enhancement
feature-request
in-progress
lint-baseline
lint-cleanup
needs-decompose
needs-triage
performance
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/osint-hub!127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/117-mypy-var-annotated"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes the
[var-annotated]subset of the mypy cleanup tracked in #117 (t_a4f6cd60). Resolves all 38var-annotatederrors across 19 files identified in the audit at t_380ac65d.Strategy
dict[str, int],list[str],set[str], etc.).dict/listto typed forms where the audit called out the variable asvar-annotated.hibp.py(Anywas already used downstream inresp.json()inference).osint_playbook.py(_build_relationship_map,_collect_grounded_observations) annotated as their declared return shape; 5found_iocsblocks initialized asdict[str, set[str]].Verification
mypy app/ --config-file ../pyproject.toml: 0[var-annotated]errors (was 38). Total dropped from 139 to 94 (45 errors cleared: -38 in scope + -7union-attrdownstream fallout from typed dict narrowing).test_module_metadataassertions are pre-existing failures onorigin/main(the PR #124 structuralbase.pyClassVarchange totuple[str, ...]was not mirrored in test assertions) — not introduced by this PR.ruff check(cached pre-commit ruff 0.3.0) reports 0 errors on the 19 changed files.Scope discipline
Other mypy categories (
union-attr,no-any-return,index,unreachable,redundant-cast,operator,dict-item,unused-ignore,truthy-function,override,no-redef) are owned by sibling tasks per the audit; not touched here.Refs: t_a4f6cd60, t_380ac65d, Forgejo #117.