Skip to content

Commit

Permalink
Merge pull request #17688 from Homebrew/boo-more-type-errors
Browse files Browse the repository at this point in the history
formula_assertions: Fix type of `cmd` param in `shell_output`
  • Loading branch information
issyl0 authored Jul 12, 2024
2 parents 85625f5 + ecdd45e commit 9383cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/formula_assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def assertions
# 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}`
Expand Down

0 comments on commit 9383cfa

Please sign in to comment.