Files
brew/Library
Douglas Eichelberger 103bf7f9e8 utils/popen: enable typed: strict
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.
2026-01-25 09:41:43 -08:00
..

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.