Skip to content

refactor(core): dedupe stoplist and normalize generics to typing.*#247

Merged
hidai25 merged 1 commit into
mainfrom
refactor/dedupe-stoplist-typing
May 27, 2026
Merged

refactor(core): dedupe stoplist and normalize generics to typing.*#247
hidai25 merged 1 commit into
mainfrom
refactor/dedupe-stoplist-typing

Conversation

@hidai25
Copy link
Copy Markdown
Owner

@hidai25 hidai25 commented May 27, 2026

Summary

  • Lift the duplicated _STOPWORDS frozenset out of freshness.py, goal_drift.py, and retrieval_lineage.py into a new evalview/core/text.py (drops ~36 duplicated lines).
  • Convert PEP 585 builtins (set[...], frozenset[...]) to typing.Set / FrozenSet across chaos.py, fleet.py, freshness.py, goal_drift.py, retrieval_lineage.py to match the Python-3.9 style mandated in CLAUDE.md.

Pure cleanup — no behavior change. Both nits were flagged by the post-merge audit of #233 / #245.

Test plan

  • mypy clean on all six touched files
  • pytest -k "freshness or goal_drift or retrieval_lineage or chaos or fleet" — 103/103 pass in 2.56s
  • CI green

🤖 Generated with Claude Code

Lift the duplicated _STOPWORDS frozenset out of freshness, goal_drift,
and retrieval_lineage into a shared evalview.core.text module. Convert
PEP 585 builtins (set[...], frozenset[...]) to typing.Set / FrozenSet
across the six new modules to match CLAUDE.md's Python-3.9 style.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hidai25 hidai25 merged commit c0a4805 into main May 27, 2026
8 checks passed
@hidai25 hidai25 deleted the refactor/dedupe-stoplist-typing branch May 27, 2026 15:49
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