Repository navigation
(Claude) Pass the date window to the view tests as keyword arguments - #408
Conversation
The tests spread a dict of the two dates into convert_jsonl_to and process_projects_hierarchy. A type checker infers that dict as dict[str, str] and checks it against every parameter, the boolean ones included, so `ty check` over the whole tree reported 149 errors in this file. Naming from_date and to_date says the same thing and checks clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
uv run ty checkover the whole tree fails on main with 149invalid-argument-typediagnostics, all intest/test_date_window_view.py(added by #403). The tests spread a sharedWINDOWdict of the two dates intoconvert_jsonl_toandprocess_projects_hierarchy. ty infers it asdict[str, str]and checks it against every parameter, the boolean ones included.just ciruns ty and fails; GitHub CI runs pyright only, which accepts it, so the PR stayed green.This replaces the dict with a
DAYconstant and passesfrom_date=DAY, to_date=DAYexplicitly at each of the ten call sites. Test-only, no ignores, no behaviour change.uv run ty check: all checks passed (149 before).uv run pyright,ruff check,ruff format --check: clean.test/test_date_window_view.py: 25 passed, as before.🤖 Generated with Claude Code
Summary by CodeRabbit