diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index 0022617249..c45f6d09a9 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -632,7 +632,7 @@ class Tap end end - sig { params(file: Pathname).returns(Hash) } + sig { params(file: Pathname).returns(T.any(T::Array[String], Hash)) } def read_formula_list(file) JSON.parse file.read rescue JSON::ParserError