Narrow spelling helper values - #46
Conversation
Make parsed dictionary, freshness metadata, HTTP validators, and harvested records explicit enough for hosted ty 0.0.58 while preserving the helper's validated runtime behaviour.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe typo rollout script adds explicit typing for TOML mappings, cache metadata, conditional headers, and harvested findings. It also rewrites cache checks, header construction, and per-line harvesting into equivalent local-variable and loop-based control flow. ChangesTypo rollout script
Poem
🚥 Pre-merge checks | ✅ 20✅ Passed checks (20 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/typos_rollout.py`:
- Line 133: Update both cast calls in the relevant functions to use stringified
type annotations—cast("Mapping[str, object]", value) and cast("Mapping[str,
str]", corrections_table)—instead of passing Mapping subscripts directly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 23e4116e-eb2a-4826-a393-e2460caa49d8
📒 Files selected for processing (1)
scripts/typos_rollout.py
Match the helper's typing policy by keeping validated Mapping cast arguments out of runtime evaluation, as requested in review.
Summary
The hosted
beatcuegate exposed these inference differences underty0.0.58.Runtime validation and behaviour remain unchanged.
Validation
uv tool run ty@0.0.58 check scripts/typos_rollout.pymake ci(127 passed)make spellingmbake validate Makefileactionlint -colorgit diff --checkNo issue or roadmap linkage was found for this rollout feedback.