Merge pull request #17780 from Homebrew/fix-more-types

formula_assertions: Fix `pipe_output` type sig
This commit is contained in:
Issy Long 2024-07-16 22:18:44 -04:00 committed by GitHub
commit 2cdc092a26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,7 @@ module Homebrew
# optionally asserts the exit status.
#
# @api public
sig { params(cmd: String, input: T.nilable(String), result: T.nilable(Integer)).returns(String) }
sig { params(cmd: T.any(String, Pathname), input: T.nilable(String), result: T.nilable(Integer)).returns(String) }
def pipe_output(cmd, input = nil, result = nil)
ohai cmd
output = IO.popen(cmd, "w+") do |pipe|