mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
Add Sorbet type signatures to all methods in `Library/Homebrew/utils/popen.rb` and update callsites to resolve resulting type errors. - Add `sig` blocks with type parameters to `popen_read`, `safe_popen_read`, `popen_write`, `safe_popen_write`, and `popen` methods - Add `IO#wait_readable` type definition to `upstream.rbi` - Fix callsite type errors across 13 files: - Use `.fetch()` instead of `.first`/`.last` for array access - Add `T.must()` for potentially nil values - Add `T.cast()` for regex scan results - Update return type signatures where needed Contributes to #17297.
Library
This directory contains all the code run by the official brew command in Homebrew and all formulae (package descriptions) in taps (repositories containing formulae) in Taps subdirectories.