-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
bundle/*installer: typed: strict
#21300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds strict typing (typed: strict) to multiple bundle installer files and related modules, enabling Sorbet's strictest type checking. The changes add type signatures to all public methods and properly annotate instance variables with T.let to satisfy strict typing requirements.
Key changes:
- Upgraded typing level from
typed: truetotyped: strictacross 7 bundle installer files - Added comprehensive method signatures with parameter and return types
- Annotated memoized instance variables with
T.letfor proper type inference
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| bundle/vscode_extension_installer.rb | Added strict typing with method signatures and T.let for @installed_extensions |
| bundle/tap_installer.rb | Added strict typing, extracted clone_target parameter explicitly, added signatures |
| bundle/remover.rb | Added strict typing with proper type annotations and explicit empty array return |
| bundle/mac_app_store_installer.rb | Added strict typing with method signatures and T.let for instance variables |
| bundle/installer.rb | Added strict typing with comprehensive signature for install! method |
| bundle/go_installer.rb | Added strict typing with method signatures and T.let for @installed_packages |
| bundle/commands/remove.rb | Updated signature to use String instead of T.anything for args |
| bundle/cargo_installer.rb | Added strict typing with method signatures and T.let for @installed_packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b004a01 to
dfff0d0
Compare
dfff0d0 to
1745486
Compare
1745486 to
179e09d
Compare
MikeMcQuaid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work again, thanks for chugging through these @cho-m!
brew lgtm(style, typechecking and tests) with your changes locally?Part of #17297
Adds strict typing for: