diff --git a/Library/Homebrew/rubocops/cask/ast/stanza.rb b/Library/Homebrew/rubocops/cask/ast/stanza.rb index cab7d606e4..8bd68c6539 100644 --- a/Library/Homebrew/rubocops/cask/ast/stanza.rb +++ b/Library/Homebrew/rubocops/cask/ast/stanza.rb @@ -83,11 +83,11 @@ module RuboCop ) end - sig { returns(T::Hash[Parser::Source::Range, T::Array[Parser::Source::Comment]]) } + sig { returns(T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]) } def comments_hash @comments_hash ||= T.let( Parser::Source::Comment.associate_locations(stanza_node.parent, all_comments), - T.nilable(T::Hash[Parser::Source::Range, T::Array[Parser::Source::Comment]]), + T.nilable(T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]), ) end