Merge pull request #17780 from Homebrew/fix-more-types
formula_assertions: Fix `pipe_output` type sig
This commit is contained in:
commit
2cdc092a26
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user