Skip to content

Commit

Permalink
Bump typechecking deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Dec 11, 2024
1 parent fcddac5 commit 230c8b8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
40 changes: 20 additions & 20 deletions gemfiles/typecheck/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (8.0.0)
activesupport (8.0.0.1)
base64
benchmark (>= 0.3)
bigdecimal
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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
Expand All @@ -129,4 +129,4 @@ DEPENDENCIES
test-unit

BUNDLED WITH
2.5.3
2.5.16
4 changes: 2 additions & 2 deletions lib/prism/parse_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/prism/parse_result/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down
2 changes: 1 addition & 1 deletion lib/prism/relocation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion templates/lib/prism/node.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 230c8b8

Please sign in to comment.