From d57887b21dbc9c857bd9bcf6165f81ccc44648c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 May 2022 18:03:34 +0000 Subject: [PATCH 1/3] build(deps-dev): bump tapioca from 0.7.1 to 0.7.2 in /Library/Homebrew Bumps [tapioca](https://github.com/Shopify/tapioca) from 0.7.1 to 0.7.2. - [Release notes](https://github.com/Shopify/tapioca/releases) - [Commits](https://github.com/Shopify/tapioca/compare/v0.7.1...v0.7.2) --- updated-dependencies: - dependency-name: tapioca dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 0dbda36952..4fa5678190 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -166,13 +166,13 @@ GEM sorbet (>= 0.5.9204) sorbet-runtime (>= 0.5.9204) thor (>= 0.19.2) - tapioca (0.7.1) + tapioca (0.7.2) bundler (>= 1.17.3) pry (>= 0.12.2) rbi (~> 0.0.0, >= 0.0.14) sorbet-runtime (>= 0.5.9204) sorbet-static (>= 0.5.9204) - spoom (~> 1.1.0, >= 1.1.4) + spoom (~> 1.1.0, >= 1.1.11) thor (>= 1.2.0) yard-sorbet thor (1.2.1) From cb71c1d7f707426c9302c8c9c9d7141f89c14702 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 2 May 2022 18:46:31 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 380cada956..408dd341a1 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -101,5 +101,5 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/thor-1.2.1/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/spoom-1.1.11/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/yard-0.9.27/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/yard-sorbet-0.6.1/lib" -$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tapioca-0.7.1/lib" +$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tapioca-0.7.2/lib" $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/warning-1.2.1/lib" From 12dfa1fbd214bd0950335ffbed697153847d09ab Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 2 May 2022 18:51:49 +0000 Subject: [PATCH 3/3] Update RBI files for tapioca. --- .../{tapioca@0.7.1.rbi => tapioca@0.7.2.rbi} | 43 ++++++++++++++++--- 1 file changed, 37 insertions(+), 6 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{tapioca@0.7.1.rbi => tapioca@0.7.2.rbi} (97%) diff --git a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.1.rbi b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.2.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.2.rbi index afbb484fcd..565caf95d2 100644 --- a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.2.rbi @@ -75,8 +75,17 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void } def create_path(constant, &block); end - sig { params(name: ::String, value: ::String).void } - def create_type_member(name, value: T.unsafe(nil)); end + sig do + params( + name: ::String, + type: ::String, + variance: ::Symbol, + fixed: T.nilable(::String), + upper: T.nilable(::String), + lower: T.nilable(::String) + ).void + end + def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end sig { params(annotation: ::String).void } def deannotate!(annotation); end @@ -142,8 +151,8 @@ RBI::VERSION = T.let(T.unsafe(nil), String) module T::Generic::TypeStoragePatch def [](*types); end - def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end - def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end + def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &blk); end + def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &blk); end end module T::Types::Simple::GenericPatch @@ -1375,7 +1384,12 @@ module Tapioca::Runtime::Reflection sig { params(constant: ::Module).returns(T::Array[::Symbol]) } def constants_of(constant); end - sig { type_parameters(:U).params(klass: T.type_parameter(:U)).returns(T::Array[T.type_parameter(:U)]) } + sig do + type_parameters(:U) + .params( + klass: T.all(::Class, T.type_parameter(:U)) + ).returns(T::Array[T.type_parameter(:U)]) + end def descendants_of(klass); end sig { params(constant: ::Module).returns(T::Array[::Module]) } @@ -1639,6 +1653,23 @@ class Tapioca::TypeVariable < ::T::Types::TypeVariable def name; end end +module Tapioca::TypeVariableHelper + extend ::Tapioca::SorbetHelper + + class << self + sig do + params( + type: ::String, + variance: ::Symbol, + fixed: T.nilable(::String), + upper: T.nilable(::String), + lower: T.nilable(::String) + ).returns(::String) + end + def serialize_type_variable(type, variance, fixed, upper, lower); end + end +end + class Tapioca::TypeVariableModule < ::Module sig do params( @@ -1650,7 +1681,7 @@ class Tapioca::TypeVariableModule < ::Module upper: T.untyped ).void end - def initialize(context, type, variance, fixed, lower, upper); end + def initialize(context, type, variance, fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end sig { returns(::Tapioca::TypeVariable) } def coerce_to_type_variable; end