From 230c8b8a48214aa6674ae28a514a4a1d0163e8c9 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 11 Dec 2024 14:09:17 -0500 Subject: [PATCH] Bump typechecking deps --- gemfiles/typecheck/Gemfile.lock | 40 ++++++++++++++++---------------- lib/prism/parse_result.rb | 4 ++-- lib/prism/parse_result/errors.rb | 2 +- lib/prism/relocation.rb | 2 +- templates/lib/prism/node.rb.erb | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/gemfiles/typecheck/Gemfile.lock b/gemfiles/typecheck/Gemfile.lock index 4e22038ca8..aa8cd762b8 100644 --- a/gemfiles/typecheck/Gemfile.lock +++ b/gemfiles/typecheck/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - activesupport (8.0.0) + activesupport (8.0.0.1) base64 benchmark (>= 0.3) bigdecimal @@ -28,13 +28,13 @@ GEM fileutils (1.7.3) i18n (1.14.6) concurrent-ruby (~> 1.0) - json (2.8.1) + json (2.9.0) language_server-protocol (3.17.0.3) listen (3.9.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - logger (1.6.1) - minitest (5.25.1) + logger (1.6.2) + minitest (5.25.4) netrc (0.11.0) parallel (1.26.3) parser (3.3.6.0) @@ -53,27 +53,27 @@ GEM rbi (0.2.1) prism (~> 1.0) sorbet-runtime (>= 0.5.9204) - rbs (3.6.1) + rbs (3.7.0) logger ruby_parser (3.21.1) racc (~> 1.5) sexp_processor (~> 4.16) - securerandom (0.3.2) - sexp_processor (4.17.2) - sorbet (0.5.11647) - sorbet-static (= 0.5.11647) - sorbet-runtime (0.5.11647) - sorbet-static (0.5.11647-universal-darwin) - sorbet-static (0.5.11647-x86_64-linux) - sorbet-static-and-runtime (0.5.11647) - sorbet (= 0.5.11647) - sorbet-runtime (= 0.5.11647) + securerandom (0.4.0) + sexp_processor (4.17.3) + sorbet (0.5.11690) + sorbet-static (= 0.5.11690) + sorbet-runtime (0.5.11690) + sorbet-static (0.5.11690-universal-darwin) + sorbet-static (0.5.11690-x86_64-linux) + sorbet-static-and-runtime (0.5.11690) + sorbet (= 0.5.11690) + sorbet-runtime (= 0.5.11690) spoom (1.5.0) erubi (>= 1.10.0) prism (>= 0.28.0) sorbet-static-and-runtime (>= 0.5.10187) thor (>= 0.19.2) - steep (1.8.3) + steep (1.9.1) activesupport (>= 5.1) concurrent-ruby (>= 1.1.10) csv (>= 3.0.9) @@ -84,12 +84,12 @@ GEM logger (>= 1.3.0) parser (>= 3.1) rainbow (>= 2.2.2, < 4.0) - rbs (~> 3.6.0) + rbs (~> 3.7.0) securerandom (>= 0.1) strscan (>= 1.0.0) terminal-table (>= 2, < 4) strscan (3.1.0) - tapioca (0.16.4) + tapioca (0.16.5) bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) @@ -106,7 +106,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - uri (1.0.1) + uri (1.0.2) yard (0.9.37) yard-sorbet (0.9.0) sorbet-runtime @@ -129,4 +129,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 2.5.3 + 2.5.16 diff --git a/lib/prism/parse_result.rb b/lib/prism/parse_result.rb index 46bd33d1db..7aee20c9de 100644 --- a/lib/prism/parse_result.rb +++ b/lib/prism/parse_result.rb @@ -204,8 +204,8 @@ def initialize(source, encoding) 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. diff --git a/lib/prism/parse_result/errors.rb b/lib/prism/parse_result/errors.rb index 847a8442fe..eb4f317248 100644 --- a/lib/prism/parse_result/errors.rb +++ b/lib/prism/parse_result/errors.rb @@ -17,7 +17,7 @@ def initialize(parse_result) # 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| diff --git a/lib/prism/relocation.rb b/lib/prism/relocation.rb index ad914396f6..163d2012c5 100644 --- a/lib/prism/relocation.rb +++ b/lib/prism/relocation.rb @@ -465,7 +465,7 @@ def reify! # :nodoc: 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)) diff --git a/templates/lib/prism/node.rb.erb b/templates/lib/prism/node.rb.erb index 72245cd30d..e4ca185719 100644 --- a/templates/lib/prism/node.rb.erb +++ b/templates/lib/prism/node.rb.erb @@ -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