Resolve type errors

This commit is contained in:
Douglas Eichelberger 2025-09-06 17:20:42 -07:00
parent 172e61224c
commit e79760ec2c
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ module Homebrew
sig { returns(T::Array[String]) }
def cli_args
@cli_args ||= @processed_options.filter_map do |short, long|
option = long || short
option = T.must(long || short)
switch = :"#{option_to_name(option)}?"
flag = option_to_name(option).to_sym
if @table[switch] == true || @table[flag] == true

View File

@ -204,7 +204,7 @@ module Commands
cmd_parser.processed_options.filter_map do |short, long, desc, hidden|
next if hidden
[long || short, desc]
[T.must(long || short), desc]
end
else
options = []