[ruby/prism] Bump typechecking deps

https://github.com/ruby/prism/commit/230c8b8a48
This commit is contained in:
Kevin Newton 2024-12-11 14:09:17 -05:00 committed by git
parent cfb7213882
commit 34e68548d4
4 changed files with 5 additions and 5 deletions

View File

@ -204,8 +204,8 @@ module Prism
LengthCounter.new(source, encoding)
end
@cache = {}
@offsets = []
@cache = {} #: Hash[Integer, Integer]
@offsets = [] #: Array[Integer]
end
# Retrieve the code units offset from the given byte offset.

View File

@ -17,7 +17,7 @@ module Prism
# Formats the errors in a human-readable way and return them as a string.
def format
error_lines = {}
error_lines = {} #: Hash[Integer, Array[ParseError]]
parse_result.errors.each do |error|
location = error.location
(location.start_line..location.end_line).each do |line|

View File

@ -465,7 +465,7 @@ module Prism
while (node = queue.shift)
@entries[node.node_id].each do |field_name, entry|
value = node.public_send(field_name)
values = {}
values = {} #: Hash[Symbol, untyped]
fields.each_value do |field|
values.merge!(field.fields(value))

View File

@ -182,7 +182,7 @@ module Prism
# bytes, as opposed to characters or code units.
def tunnel(line, column)
queue = [self] #: Array[Prism::node]
result = []
result = [] #: Array[Prism::node]
while (node = queue.shift)
result << node