sorbet: Bump more Cask tests to higher typed levels - #23574
Merged
Conversation
issyl0
force-pushed
the
sorbet-cask-two-errors
branch
2 times, most recently
from
August 19, 2026 21:45
774b325 to
3d7f1f3
Compare
issyl0
marked this pull request as ready for review
August 19, 2026 22:17
krehel
approved these changes
Aug 19, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR advances Sorbet adoption in Homebrew’s Cask area by raising the typed levels of additional Cask-related specs and extending the Tapioca-generated RBI for Cask::DSL to cover architecture-scoped DSL helpers.
Changes:
- Bump selected Cask-related specs from
# typed: falseto# typed: trueand adjust a couple ofletdeclarations to satisfy typechecking. - Extend the
Cask::DSLTapioca compiler to generate RBI entries foron_arm/on_intel. - Update the autogenerated
Cask::DSLRBI to includeon_arm/on_intelsignatures.
Show a summary per file
| File | Description |
|---|---|
| Library/Homebrew/test/dev-cmd/bump-cask-pr_spec.rb | Raises the spec’s Sorbet typed level to improve static checking coverage. |
| Library/Homebrew/test/cask/download_spec.rb | Raises the spec’s Sorbet typed level and tweaks let scoping for typechecking. |
| Library/Homebrew/sorbet/tapioca/compilers/cask/dsl.rb | Generates RBI method signatures for Cask::DSL#on_arm/#on_intel. |
| Library/Homebrew/sorbet/rbi/dsl/cask/dsl.rbi | Adds the generated on_arm/on_intel methods to the Cask DSL RBI. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Files not reviewed (1)
- Library/Homebrew/sorbet/rbi/dsl/cask/dsl.rbi: File type not supported
- Files reviewed: 3/4 changed files
- Comments generated: 2
- Review effort level: Lite
issyl0
marked this pull request as draft
August 19, 2026 22:31
- Generate typed on_arm and on_intel methods from the Cask DSL compiler instead of maintaining a manual RBI shim. Their blocks are required, because the generated methods call them unconditionally once the architecture matches. - Define Download version and checksum lets in the same scope as the doubles that consume them.
issyl0
force-pushed
the
sorbet-cask-two-errors
branch
from
August 19, 2026 23:00
3d7f1f3 to
f09cd41
Compare
issyl0
marked this pull request as ready for review
August 19, 2026 23:33
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.
brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Claude Code CLI, Claude Opus 5 (High reasoning, Ultracode was too intense 🤯), with human prompting, review and tweaks.
typed: true, because that's a thing we can do.gh stackbecause I wanted to try them out on a real chain of changes.