Skip to content

Commit

Permalink
Bump Sorbet version
Browse files Browse the repository at this point in the history
  • Loading branch information
paracycle committed Aug 22, 2022
1 parent d365400 commit 992d482
Show file tree
Hide file tree
Showing 6 changed files with 155 additions and 170 deletions.
31 changes: 16 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,21 +290,22 @@ GEM
rack (~> 2.0)
redis (>= 4.2.0)
smart_properties (1.17.0)
sorbet (0.5.10151)
sorbet-static (= 0.5.10151)
sorbet-runtime (0.5.10151)
sorbet-static (0.5.10151-universal-darwin-14)
sorbet-static (0.5.10151-universal-darwin-15)
sorbet-static (0.5.10151-universal-darwin-16)
sorbet-static (0.5.10151-universal-darwin-17)
sorbet-static (0.5.10151-universal-darwin-18)
sorbet-static (0.5.10151-universal-darwin-19)
sorbet-static (0.5.10151-universal-darwin-20)
sorbet-static (0.5.10151-universal-darwin-21)
sorbet-static (0.5.10151-x86_64-linux)
sorbet-static-and-runtime (0.5.10151)
sorbet (= 0.5.10151)
sorbet-runtime (= 0.5.10151)
sorbet (0.5.10346)
sorbet-static (= 0.5.10346)
sorbet-runtime (0.5.10346)
sorbet-static (0.5.10346-universal-darwin-14)
sorbet-static (0.5.10346-universal-darwin-15)
sorbet-static (0.5.10346-universal-darwin-16)
sorbet-static (0.5.10346-universal-darwin-17)
sorbet-static (0.5.10346-universal-darwin-18)
sorbet-static (0.5.10346-universal-darwin-19)
sorbet-static (0.5.10346-universal-darwin-20)
sorbet-static (0.5.10346-universal-darwin-21)
sorbet-static (0.5.10346-universal-darwin-22)
sorbet-static (0.5.10346-x86_64-linux)
sorbet-static-and-runtime (0.5.10346)
sorbet (= 0.5.10346)
sorbet-runtime (= 0.5.10346)
spoom (1.1.11)
sorbet (>= 0.5.9204)
sorbet-runtime (>= 0.5.9204)
Expand Down
4 changes: 3 additions & 1 deletion lib/tapioca/commands/annotations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def fetch_annotations(gem_names)
fetchable_gems = T.let(Hash.new { |h, k| h[k] = [] }, T::Hash[String, T::Array[String]])

gem_names.each_with_object(fetchable_gems) do |gem_name, hash|
@indexes.each { |uri, index| hash[gem_name] << uri if index.has_gem?(gem_name) }
@indexes.each do |uri, index|
T.must(hash[gem_name]) << uri if index.has_gem?(gem_name)
end
end

if fetchable_gems.empty?
Expand Down
1 change: 0 additions & 1 deletion lib/tapioca/dsl/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ def self.processable_constants
T::Set[Module].new(gather_constants).compare_by_identity,
T.nilable(T::Set[Module])
)
T.must(@processable_constants)
end

# NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`.
Expand Down
1 change: 0 additions & 1 deletion lib/tapioca/dsl/compilers/active_record_relations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def self.gather_constants
sig { returns(String) }
def constant_name
@constant_name ||= T.let(T.must(qualified_name_of(constant)), T.nilable(String))
T.must(@constant_name)
end

sig { params(method_name: Symbol).returns(T::Boolean) }
Expand Down
2 changes: 1 addition & 1 deletion lib/tapioca/rbi_ext/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def create_method(name, parameters: [], return_type: "T.untyped", class_method:

sig { returns(T::Hash[String, RBI::Node]) }
def nodes_cache
T.must(@nodes_cache ||= T.let({}, T.nilable(T::Hash[String, Node])))
@nodes_cache ||= T.let({}, T.nilable(T::Hash[String, Node]))
end

sig { params(node: RBI::Node).returns(RBI::Node) }
Expand Down
Loading

0 comments on commit 992d482

Please sign in to comment.