diff --git a/Library/Homebrew/formula_assertions.rb b/Library/Homebrew/formula_assertions.rb index db3320b62a..a1741f6658 100644 --- a/Library/Homebrew/formula_assertions.rb +++ b/Library/Homebrew/formula_assertions.rb @@ -21,7 +21,7 @@ module Homebrew # Returns the output of running cmd and asserts the exit status. # # @api public - sig { params(cmd: String, result: Integer).returns(String) } + sig { params(cmd: T.any(Pathname, String), result: Integer).returns(String) } def shell_output(cmd, result = 0) ohai cmd output = `#{cmd}`