-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
sorbet: Make more files (that have public APIs defined in them) typed: strict
#17636
Conversation
8dfd2b4
to
644ff02
Compare
644ff02
to
5abd08b
Compare
5abd08b
to
cd18694
Compare
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.
Looking great so far!
bab0dda
to
0a18f77
Compare
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.
Looks great, thanks @issyl0!
Something with the new |
I think the test failure involves the combination of changes to |
Yeah I got that far too. 😅 |
- I put a debugger call in the test that was failing. - Running the install command at that debug prompt and lo, the typing bug was staring me in the face: ``` Error: An exception occurred within a child process: TypeError: Parameter 'ref_type': Expected type T.nilable(String), got type Symbol with value :branch Caller: /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11471/lib/types/private/methods/call_validation.rb:215 Definition: /opt/homebrew/Library/Homebrew/unpack_strategy.rb:102 (UnpackStrategy.detect) ```
e09145e
to
edb8055
Compare
This is finally green! |
Thanks @issy! Good to self-merge. |
1 similar comment
Thanks @issy! Good to self-merge. |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?typed: strict
in all (non-package) files in Homebrew organisation #17297.typed: strict
" list were public API-related viagrep -rL "# typed: strict" Library/Homebrew | xargs grep -l "@api public"
.