Fix cask/ast/stanza

This commit is contained in:
Douglas Eichelberger 2025-09-07 07:57:37 -07:00
parent 6a6ccdfa8a
commit 79a2a2d420
No known key found for this signature in database
GPG Key ID: F90193CBD547EB81

View File

@ -83,11 +83,11 @@ module RuboCop
) )
end 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 def comments_hash
@comments_hash ||= T.let( @comments_hash ||= T.let(
Parser::Source::Comment.associate_locations(stanza_node.parent, all_comments), 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 end