diff --git a/lib/sorbet-rails/active_record_rbi_formatter.rb b/lib/sorbet-rails/active_record_rbi_formatter.rb index 49c908fc..e6b16f03 100644 --- a/lib/sorbet-rails/active_record_rbi_formatter.rb +++ b/lib/sorbet-rails/active_record_rbi_formatter.rb @@ -40,7 +40,7 @@ def generate_active_record_relation_rbi class_rbi.create_include("Enumerable") # class_rbi.create_constant( # "Elem", - # value: "type_member(fixed: T.untyped)", + # value: "type_member {{fixed: T.untyped}}", # ) create_elem_specific_query_methods(class_rbi, type: 'Elem', class_method: false) @@ -75,7 +75,7 @@ def generate_active_record_relation_rbi parlour.root.create_class("ActiveRecord::AssociationRelation", superclass: "ActiveRecord::Relation") do |class_rbi| class_rbi.create_constant( "Elem", - value: "type_member(fixed: T.untyped)", + value: "type_member {{fixed: T.untyped}}", ) # Ideally we shouldn't need to define these since this class inherits from @@ -110,7 +110,7 @@ def generate_active_record_relation_rbi parlour.root.create_class("ActiveRecord::Associations::CollectionProxy", superclass: "ActiveRecord::Relation") do |class_rbi| class_rbi.create_constant( "Elem", - value: "type_member(fixed: T.untyped)", + value: "type_member {{fixed: T.untyped}}", ) # This _should_ work which would let us remove it from the enumerable_collections diff --git a/lib/sorbet-rails/model_rbi_formatter.rb b/lib/sorbet-rails/model_rbi_formatter.rb index c66a735c..a2050db3 100644 --- a/lib/sorbet-rails/model_rbi_formatter.rb +++ b/lib/sorbet-rails/model_rbi_formatter.rb @@ -80,7 +80,7 @@ def generate_base_rbi(root) model_relation_rbi.create_include(self.model_query_methods_returning_relation_module_name) model_relation_rbi.create_constant( "Elem", - value: "type_member(fixed: #{model_class_name})", + value: "type_member {{fixed: #{model_class_name}}}", ) model_assoc_relation_rbi = root.create_class( @@ -90,7 +90,7 @@ def generate_base_rbi(root) model_assoc_relation_rbi.create_include(self.model_query_methods_returning_assoc_relation_module_name) model_assoc_relation_rbi.create_constant( "Elem", - value: "type_member(fixed: #{model_class_name})", + value: "type_member {{fixed: #{model_class_name}}}", ) collection_proxy_rbi = root.create_class( @@ -100,7 +100,7 @@ def generate_base_rbi(root) collection_proxy_rbi.create_include(self.model_query_methods_returning_assoc_relation_module_name) collection_proxy_rbi.create_constant( "Elem", - value: "type_member(fixed: #{self.model_class_name})", + value: "type_member {{fixed: #{self.model_class_name}}}", ) model_rbi = root.create_class( diff --git a/sorbet-rails.gemspec b/sorbet-rails.gemspec index 69a04983..bb9c3874 100644 --- a/sorbet-rails.gemspec +++ b/sorbet-rails.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| end s.add_dependency 'parlour', '>= 4.0.1' - s.add_dependency 'sorbet-runtime', '>= 0.5' + s.add_dependency 'sorbet-runtime', '>= 0.5.9892' s.add_dependency 'sorbet-coerce', '>= 0.2.6' s.add_dependency 'method_source', '>= 0.9.2' s.add_dependency 'parser', '>= 2.7' diff --git a/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi b/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi index 6d4699e7..c59d3246 100644 --- a/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +++ b/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi @@ -568,7 +568,7 @@ ActiveModel::Validations::NumericalityValidator::RESERVED_OPTIONS = T.let(T.unsa class ActiveModel::Errors include Enumerable - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(key: T.any(String, Symbol)).returns(T::Array[String]) } def [](key); end diff --git a/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi b/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi index 4288606f..e820d343 100644 --- a/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +++ b/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi @@ -979,7 +979,7 @@ end class ActiveRecord::Result include(::Enumerable) - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} end ActiveRecord::Type::BigInteger = ActiveModel::Type::BigInteger @@ -1610,7 +1610,7 @@ end ActiveRecord::LogSubscriber::IGNORE_PAYLOAD_NAMES = T.let(T.unsafe(nil), T::Array[T.untyped]) class ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { returns(Integer) } def delete_all; end diff --git a/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi b/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi index 2e17109e..18f5fdb2 100644 --- a/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +++ b/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi @@ -550,9 +550,9 @@ module ActiveSupport::Inflector end class ActiveSupport::InheritableOptions < ::ActiveSupport::OrderedOptions - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} def initialize(parent = T.unsafe(nil)); end @@ -1767,9 +1767,9 @@ end module ActiveSupport::Configurable::ClassMethods; end class ActiveSupport::Configurable::Configuration < ::ActiveSupport::InheritableOptions - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} end ActiveSupport::Deprecation::DEFAULT_BEHAVIORS = T.let(T.unsafe(nil), T::Hash[T.untyped, T.untyped]) @@ -1786,9 +1786,9 @@ class ActiveSupport::DeprecationException < ::StandardError end class ActiveSupport::HashWithIndifferentAccess < Hash - K = type_member(fixed: T.any(String, Symbol)) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.any(String, Symbol)}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} end ActiveSupport::JSON::DATETIME_REGEX = T.let(T.unsafe(nil), Regexp) @@ -1822,15 +1822,15 @@ ActiveSupport::Multibyte::Unicode::NORMALIZATION_FORM_ALIASES = T.let(T.unsafe(n ActiveSupport::Multibyte::Unicode::UNICODE_VERSION = T.let(T.unsafe(nil), String) class ActiveSupport::OrderedHash < ::Hash - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} end class ActiveSupport::OrderedOptions < ::Hash - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} end ActiveSupport::ParameterFilter::FILTERED = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi b/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi index 879c6663..8cbef6c0 100644 --- a/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +++ b/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi @@ -40,9 +40,9 @@ end Rails::Application::INITIAL_VARIABLES = T.let(T.unsafe(nil), T::Array[T.untyped]) class Rails::Application::NonSymbolAccessDeprecatedHash < ::ActiveSupport::HashWithIndifferentAccess - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} end module Rails::Command::Behavior diff --git a/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi b/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi index 1118dfcb..d5789d8d 100644 --- a/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +++ b/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi @@ -361,7 +361,7 @@ module Thor::Base::ClassMethods end class Thor::Command < ::Struct - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} def initialize(name, description, long_description, usage, options = T.unsafe(nil)); end @@ -392,9 +392,9 @@ module Thor::CoreExt end class Thor::CoreExt::HashWithIndifferentAccess < ::Hash - K = type_member(fixed: T.untyped) - V = type_member(fixed: T.untyped) - Elem = type_member(fixed: T.untyped) + K = type_member {{fixed: T.untyped}} + V = type_member {{fixed: T.untyped}} + Elem = type_member {{fixed: T.untyped}} def initialize(hash = T.unsafe(nil)); end @@ -420,7 +420,7 @@ end Thor::Correctable = DidYouMean::Correctable class Thor::DynamicCommand < ::Thor::Command - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} def initialize(name, options = T.unsafe(nil)); end @@ -473,7 +473,7 @@ end Thor::HELP_MAPPINGS = T.let(T.unsafe(nil), T::Array[T.untyped]) class Thor::HiddenCommand < ::Thor::Command - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} def hidden?; end end diff --git a/spec/support/v5.2/Gemfile.lock b/spec/support/v5.2/Gemfile.lock index 4fbafdf8..76a74edf 100644 --- a/spec/support/v5.2/Gemfile.lock +++ b/spec/support/v5.2/Gemfile.lock @@ -1,53 +1,53 @@ PATH remote: ../../.. specs: - sorbet-rails (0.7.100) + sorbet-rails (0.7.32) method_source (>= 0.9.2) parlour (>= 4.0.1) parser (>= 2.7) sorbet-coerce (>= 0.2.6) - sorbet-runtime (>= 0.5) + sorbet-runtime (>= 0.5.9892) GEM remote: https://rubygems.org/ specs: - actioncable (5.2.6) - actionpack (= 5.2.6) + actioncable (5.2.7) + actionpack (= 5.2.7) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailer (5.2.6) - actionpack (= 5.2.6) - actionview (= 5.2.6) - activejob (= 5.2.6) + actionmailer (5.2.7) + actionpack (= 5.2.7) + actionview (= 5.2.7) + activejob (= 5.2.7) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (5.2.6) - actionview (= 5.2.6) - activesupport (= 5.2.6) + actionpack (5.2.7) + actionview (= 5.2.7) + activesupport (= 5.2.7) rack (~> 2.0, >= 2.0.8) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.6) - activesupport (= 5.2.6) + actionview (5.2.7) + activesupport (= 5.2.7) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.2.6) - activesupport (= 5.2.6) + activejob (5.2.7) + activesupport (= 5.2.7) globalid (>= 0.3.6) - activemodel (5.2.6) - activesupport (= 5.2.6) - activerecord (5.2.6) - activemodel (= 5.2.6) - activesupport (= 5.2.6) + activemodel (5.2.7) + activesupport (= 5.2.7) + activerecord (5.2.7) + activemodel (= 5.2.7) + activesupport (= 5.2.7) arel (>= 9.0) - activestorage (5.2.6) - actionpack (= 5.2.6) - activerecord (= 5.2.6) + activestorage (5.2.7) + actionpack (= 5.2.7) + activerecord (= 5.2.7) marcel (~> 1.0.0) - activesupport (5.2.6) + activesupport (5.2.7) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) @@ -59,89 +59,98 @@ GEM byebug (11.1.3) commander (4.6.0) highline (~> 2.0.0) - concurrent-ruby (1.1.9) + concurrent-ruby (1.1.10) crass (1.0.6) erubi (1.10.0) - globalid (0.4.2) - activesupport (>= 4.2.0) + globalid (1.0.0) + activesupport (>= 5.0) highline (2.0.3) - i18n (1.8.10) + i18n (1.10.0) concurrent-ruby (~> 1.0) - jbuilder (2.11.2) + jbuilder (2.11.5) + actionview (>= 5.0.0) activesupport (>= 5.0.0) - loofah (2.10.0) + loofah (2.16.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) mini_mime (>= 0.1.1) - marcel (1.0.1) + marcel (1.0.2) method_source (1.0.0) - mini_mime (1.1.0) - mini_portile2 (2.5.3) - minitest (5.14.4) - nio4r (2.5.7) - nokogiri (1.11.7) - mini_portile2 (~> 2.5.0) + mini_mime (1.1.2) + mini_portile2 (2.8.0) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.4) + mini_portile2 (~> 2.8.0) racc (~> 1.4) - nokogiri (1.11.7-x86_64-darwin) + nokogiri (1.13.4-x86_64-darwin) racc (~> 1.4) - parlour (6.0.1) + parlour (7.0.0) commander (~> 4.5) parser rainbow (~> 3.0) sorbet-runtime (>= 0.5) - parser (3.0.2.0) + parser (3.1.2.0) ast (~> 2.4.1) polyfill (1.9.0) puma (3.12.6) - racc (1.5.2) + racc (1.6.0) rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) - rails (5.2.6) - actioncable (= 5.2.6) - actionmailer (= 5.2.6) - actionpack (= 5.2.6) - actionview (= 5.2.6) - activejob (= 5.2.6) - activemodel (= 5.2.6) - activerecord (= 5.2.6) - activestorage (= 5.2.6) - activesupport (= 5.2.6) + rails (5.2.7) + actioncable (= 5.2.7) + actionmailer (= 5.2.7) + actionpack (= 5.2.7) + actionview (= 5.2.7) + activejob (= 5.2.7) + activemodel (= 5.2.7) + activerecord (= 5.2.7) + activestorage (= 5.2.7) + activesupport (= 5.2.7) bundler (>= 1.3.0) - railties (= 5.2.6) + railties (= 5.2.7) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) + rails-html-sanitizer (1.4.2) loofah (~> 2.3) - railties (5.2.6) - actionpack (= 5.2.6) - activesupport (= 5.2.6) + railties (5.2.7) + actionpack (= 5.2.7) + activesupport (= 5.2.7) method_source rake (>= 0.8.7) thor (>= 0.19.0, < 2.0) - rainbow (3.0.0) + rainbow (3.1.1) rake (13.0.6) safe_type (1.1.1) - sorbet (0.5.6519) - sorbet-static (= 0.5.6519) + sorbet (0.5.9892) + sorbet-static (= 0.5.9892) sorbet-coerce (0.5.0) polyfill (~> 1.8) safe_type (~> 1.1, >= 1.1.1) sorbet-runtime (>= 0.4.4704) - sorbet-runtime (0.5.6519) - sorbet-static (0.5.6519-universal-darwin-20) - sprockets (4.0.2) + sorbet-runtime (0.5.9892) + sorbet-static (0.5.9892-universal-darwin-14) + sorbet-static (0.5.9892-universal-darwin-15) + sorbet-static (0.5.9892-universal-darwin-16) + sorbet-static (0.5.9892-universal-darwin-17) + sorbet-static (0.5.9892-universal-darwin-18) + sorbet-static (0.5.9892-universal-darwin-19) + sorbet-static (0.5.9892-universal-darwin-20) + sorbet-static (0.5.9892-universal-darwin-21) + sorbet-static (0.5.9892-x86_64-linux) + sprockets (4.0.3) concurrent-ruby (~> 1.0) rack (> 1, < 3) - sprockets-rails (3.2.2) - actionpack (>= 4.0) - activesupport (>= 4.0) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) sprockets (>= 3.0.0) sqlite3 (1.4.2) - thor (1.1.0) + thor (1.2.1) thread_safe (0.3.6) tzinfo (1.2.9) thread_safe (~> 0.1) @@ -171,4 +180,4 @@ DEPENDENCIES web-console (>= 3.3.0) BUNDLED WITH - 2.2.24 + 2.2.32 diff --git a/spec/support/v6.0/Gemfile.lock b/spec/support/v6.0/Gemfile.lock index 5409c65a..4a5f849d 100644 --- a/spec/support/v6.0/Gemfile.lock +++ b/spec/support/v6.0/Gemfile.lock @@ -1,66 +1,66 @@ PATH remote: ../../.. specs: - sorbet-rails (0.7.100) + sorbet-rails (0.7.32) method_source (>= 0.9.2) parlour (>= 4.0.1) parser (>= 2.7) sorbet-coerce (>= 0.2.6) - sorbet-runtime (>= 0.5) + sorbet-runtime (>= 0.5.9892) GEM remote: https://rubygems.org/ specs: - actioncable (6.0.4) - actionpack (= 6.0.4) + actioncable (6.0.4.7) + actionpack (= 6.0.4.7) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.0.4) - actionpack (= 6.0.4) - activejob (= 6.0.4) - activerecord (= 6.0.4) - activestorage (= 6.0.4) - activesupport (= 6.0.4) + actionmailbox (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) mail (>= 2.7.1) - actionmailer (6.0.4) - actionpack (= 6.0.4) - actionview (= 6.0.4) - activejob (= 6.0.4) + actionmailer (6.0.4.7) + actionpack (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.0.4) - actionview (= 6.0.4) - activesupport (= 6.0.4) + actionpack (6.0.4.7) + actionview (= 6.0.4.7) + activesupport (= 6.0.4.7) rack (~> 2.0, >= 2.0.8) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.4) - actionpack (= 6.0.4) - activerecord (= 6.0.4) - activestorage (= 6.0.4) - activesupport (= 6.0.4) + actiontext (6.0.4.7) + actionpack (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) nokogiri (>= 1.8.5) - actionview (6.0.4) - activesupport (= 6.0.4) + actionview (6.0.4.7) + activesupport (= 6.0.4.7) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.0.4) - activesupport (= 6.0.4) + activejob (6.0.4.7) + activesupport (= 6.0.4.7) globalid (>= 0.3.6) - activemodel (6.0.4) - activesupport (= 6.0.4) - activerecord (6.0.4) - activemodel (= 6.0.4) - activesupport (= 6.0.4) - activestorage (6.0.4) - actionpack (= 6.0.4) - activejob (= 6.0.4) - activerecord (= 6.0.4) + activemodel (6.0.4.7) + activesupport (= 6.0.4.7) + activerecord (6.0.4.7) + activemodel (= 6.0.4.7) + activesupport (= 6.0.4.7) + activestorage (6.0.4.7) + actionpack (= 6.0.4.7) + activejob (= 6.0.4.7) + activerecord (= 6.0.4.7) marcel (~> 1.0.0) - activesupport (6.0.4) + activesupport (6.0.4.7) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) @@ -72,97 +72,105 @@ GEM byebug (11.1.3) commander (4.6.0) highline (~> 2.0.0) - concurrent-ruby (1.1.9) + concurrent-ruby (1.1.10) crass (1.0.6) erubi (1.10.0) - globalid (0.4.2) - activesupport (>= 4.2.0) + globalid (1.0.0) + activesupport (>= 5.0) highline (2.0.3) - i18n (1.8.10) + i18n (1.10.0) concurrent-ruby (~> 1.0) - jbuilder (2.11.2) + jbuilder (2.11.5) + actionview (>= 5.0.0) activesupport (>= 5.0.0) - loofah (2.10.0) + loofah (2.16.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) mini_mime (>= 0.1.1) - marcel (1.0.1) + marcel (1.0.2) method_source (1.0.0) - mini_mime (1.1.0) - mini_portile2 (2.5.3) - minitest (5.14.4) - nio4r (2.5.7) - nokogiri (1.11.7) - mini_portile2 (~> 2.5.0) + mini_mime (1.1.2) + mini_portile2 (2.8.0) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.4) + mini_portile2 (~> 2.8.0) racc (~> 1.4) - nokogiri (1.11.7-x86_64-darwin) + nokogiri (1.13.4-x86_64-darwin) racc (~> 1.4) - parlour (6.0.1) + parlour (7.0.0) commander (~> 4.5) parser rainbow (~> 3.0) sorbet-runtime (>= 0.5) - parser (3.0.2.0) + parser (3.1.2.0) ast (~> 2.4.1) polyfill (1.9.0) - puma (4.3.8) + puma (4.3.12) nio4r (~> 2.0) - racc (1.5.2) + racc (1.6.0) rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) - rails (6.0.4) - actioncable (= 6.0.4) - actionmailbox (= 6.0.4) - actionmailer (= 6.0.4) - actionpack (= 6.0.4) - actiontext (= 6.0.4) - actionview (= 6.0.4) - activejob (= 6.0.4) - activemodel (= 6.0.4) - activerecord (= 6.0.4) - activestorage (= 6.0.4) - activesupport (= 6.0.4) + rails (6.0.4.7) + actioncable (= 6.0.4.7) + actionmailbox (= 6.0.4.7) + actionmailer (= 6.0.4.7) + actionpack (= 6.0.4.7) + actiontext (= 6.0.4.7) + actionview (= 6.0.4.7) + activejob (= 6.0.4.7) + activemodel (= 6.0.4.7) + activerecord (= 6.0.4.7) + activestorage (= 6.0.4.7) + activesupport (= 6.0.4.7) bundler (>= 1.3.0) - railties (= 6.0.4) + railties (= 6.0.4.7) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) + rails-html-sanitizer (1.4.2) loofah (~> 2.3) - railties (6.0.4) - actionpack (= 6.0.4) - activesupport (= 6.0.4) + railties (6.0.4.7) + actionpack (= 6.0.4.7) + activesupport (= 6.0.4.7) method_source rake (>= 0.8.7) thor (>= 0.20.3, < 2.0) - rainbow (3.0.0) + rainbow (3.1.1) rake (13.0.6) safe_type (1.1.1) - sorbet (0.5.6519) - sorbet-static (= 0.5.6519) + sorbet (0.5.9892) + sorbet-static (= 0.5.9892) sorbet-coerce (0.5.0) polyfill (~> 1.8) safe_type (~> 1.1, >= 1.1.1) sorbet-runtime (>= 0.4.4704) - sorbet-runtime (0.5.6519) - sorbet-static (0.5.6519-universal-darwin-19) - sorbet-static (0.5.6519-x86_64-linux) - sprockets (4.0.2) + sorbet-runtime (0.5.9892) + sorbet-static (0.5.9892-universal-darwin-14) + sorbet-static (0.5.9892-universal-darwin-15) + sorbet-static (0.5.9892-universal-darwin-16) + sorbet-static (0.5.9892-universal-darwin-17) + sorbet-static (0.5.9892-universal-darwin-18) + sorbet-static (0.5.9892-universal-darwin-19) + sorbet-static (0.5.9892-universal-darwin-20) + sorbet-static (0.5.9892-universal-darwin-21) + sorbet-static (0.5.9892-x86_64-linux) + sprockets (4.0.3) concurrent-ruby (~> 1.0) rack (> 1, < 3) - sprockets-rails (3.2.2) - actionpack (>= 4.0) - activesupport (>= 4.0) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) sprockets (>= 3.0.0) sqlite3 (1.4.2) - thor (1.1.0) + thor (1.2.1) thread_safe (0.3.6) tzinfo (1.2.9) thread_safe (~> 0.1) - web-console (4.1.0) + web-console (4.2.0) actionview (>= 6.0.0) activemodel (>= 6.0.0) bindex (>= 0.4.0) @@ -170,7 +178,7 @@ GEM websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.4.2) + zeitwerk (2.5.4) PLATFORMS ruby @@ -189,4 +197,4 @@ DEPENDENCIES web-console (>= 3.3.0) BUNDLED WITH - 2.2.24 + 2.2.32 diff --git a/spec/support/v6.1/Gemfile b/spec/support/v6.1/Gemfile index 4deaf23a..5b0da985 100644 --- a/spec/support/v6.1/Gemfile +++ b/spec/support/v6.1/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } -ruby '2.5.5' +#ruby '2.5.5' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '~> 6.1.4' diff --git a/spec/support/v6.1/Gemfile.lock b/spec/support/v6.1/Gemfile.lock index 6884bcc8..a0b8316b 100644 --- a/spec/support/v6.1/Gemfile.lock +++ b/spec/support/v6.1/Gemfile.lock @@ -1,177 +1,187 @@ PATH remote: ../../.. specs: - sorbet-rails (0.7.4) + sorbet-rails (0.7.32) method_source (>= 0.9.2) parlour (>= 4.0.1) parser (>= 2.7) sorbet-coerce (>= 0.2.6) - sorbet-runtime (>= 0.5) + sorbet-runtime (>= 0.5.9892) GEM remote: https://rubygems.org/ specs: - actioncable (6.0.3.2) - actionpack (= 6.0.3.2) + actioncable (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.0.3.2) - actionpack (= 6.0.3.2) - activejob (= 6.0.3.2) - activerecord (= 6.0.3.2) - activestorage (= 6.0.3.2) - activesupport (= 6.0.3.2) + actionmailbox (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) mail (>= 2.7.1) - actionmailer (6.0.3.2) - actionpack (= 6.0.3.2) - actionview (= 6.0.3.2) - activejob (= 6.0.3.2) + actionmailer (6.1.5) + actionpack (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activesupport (= 6.1.5) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.0.3.2) - actionview (= 6.0.3.2) - activesupport (= 6.0.3.2) - rack (~> 2.0, >= 2.0.8) + actionpack (6.1.5) + actionview (= 6.1.5) + activesupport (= 6.1.5) + rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.3.2) - actionpack (= 6.0.3.2) - activerecord (= 6.0.3.2) - activestorage (= 6.0.3.2) - activesupport (= 6.0.3.2) + actiontext (6.1.5) + actionpack (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) nokogiri (>= 1.8.5) - actionview (6.0.3.2) - activesupport (= 6.0.3.2) + actionview (6.1.5) + activesupport (= 6.1.5) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activejob (6.0.3.2) - activesupport (= 6.0.3.2) + activejob (6.1.5) + activesupport (= 6.1.5) globalid (>= 0.3.6) - activemodel (6.0.3.2) - activesupport (= 6.0.3.2) - activerecord (6.0.3.2) - activemodel (= 6.0.3.2) - activesupport (= 6.0.3.2) - activestorage (6.0.3.2) - actionpack (= 6.0.3.2) - activejob (= 6.0.3.2) - activerecord (= 6.0.3.2) - marcel (~> 0.3.1) - activesupport (6.0.3.2) + activemodel (6.1.5) + activesupport (= 6.1.5) + activerecord (6.1.5) + activemodel (= 6.1.5) + activesupport (= 6.1.5) + activestorage (6.1.5) + actionpack (= 6.1.5) + activejob (= 6.1.5) + activerecord (= 6.1.5) + activesupport (= 6.1.5) + marcel (~> 1.0) + mini_mime (>= 1.1.0) + activesupport (6.1.5) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) ast (2.4.2) bindex (0.8.1) builder (3.2.4) byebug (11.1.3) commander (4.6.0) highline (~> 2.0.0) - concurrent-ruby (1.1.6) + concurrent-ruby (1.1.10) crass (1.0.6) - erubi (1.9.0) - globalid (0.4.2) - activesupport (>= 4.2.0) + erubi (1.10.0) + globalid (1.0.0) + activesupport (>= 5.0) highline (2.0.3) - i18n (1.8.3) + i18n (1.10.0) concurrent-ruby (~> 1.0) - jbuilder (2.10.0) + jbuilder (2.11.5) + actionview (>= 5.0.0) activesupport (>= 5.0.0) - loofah (2.6.0) + loofah (2.16.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) mini_mime (>= 0.1.1) - marcel (0.3.3) - mimemagic (~> 0.3.2) + marcel (1.0.2) method_source (1.0.0) - mimemagic (0.3.5) - mini_mime (1.0.2) - mini_portile2 (2.5.0) - minitest (5.14.1) - nio4r (2.5.2) - nokogiri (1.11.1) - mini_portile2 (~> 2.5.0) + mini_mime (1.1.2) + mini_portile2 (2.8.0) + minitest (5.15.0) + nio4r (2.5.8) + nokogiri (1.13.4) + mini_portile2 (~> 2.8.0) racc (~> 1.4) - nokogiri (1.11.1-x86_64-darwin) + nokogiri (1.13.4-x86_64-darwin) racc (~> 1.4) - parlour (6.0.0) + parlour (7.0.0) commander (~> 4.5) parser rainbow (~> 3.0) sorbet-runtime (>= 0.5) - parser (3.0.1.1) + parser (3.1.2.0) ast (~> 2.4.1) polyfill (1.9.0) - puma (4.3.5) + puma (5.6.4) nio4r (~> 2.0) - racc (1.5.2) + racc (1.6.0) rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) - rails (6.0.3.2) - actioncable (= 6.0.3.2) - actionmailbox (= 6.0.3.2) - actionmailer (= 6.0.3.2) - actionpack (= 6.0.3.2) - actiontext (= 6.0.3.2) - actionview (= 6.0.3.2) - activejob (= 6.0.3.2) - activemodel (= 6.0.3.2) - activerecord (= 6.0.3.2) - activestorage (= 6.0.3.2) - activesupport (= 6.0.3.2) - bundler (>= 1.3.0) - railties (= 6.0.3.2) + rails (6.1.5) + actioncable (= 6.1.5) + actionmailbox (= 6.1.5) + actionmailer (= 6.1.5) + actionpack (= 6.1.5) + actiontext (= 6.1.5) + actionview (= 6.1.5) + activejob (= 6.1.5) + activemodel (= 6.1.5) + activerecord (= 6.1.5) + activestorage (= 6.1.5) + activesupport (= 6.1.5) + bundler (>= 1.15.0) + railties (= 6.1.5) sprockets-rails (>= 2.0.0) rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) - rails-html-sanitizer (1.3.0) + rails-html-sanitizer (1.4.2) loofah (~> 2.3) - railties (6.0.3.2) - actionpack (= 6.0.3.2) - activesupport (= 6.0.3.2) + railties (6.1.5) + actionpack (= 6.1.5) + activesupport (= 6.1.5) method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) - rainbow (3.0.0) - rake (13.0.1) + rake (>= 12.2) + thor (~> 1.0) + rainbow (3.1.1) + rake (13.0.6) safe_type (1.1.1) - sorbet (0.5.5815) - sorbet-static (= 0.5.5815) - sorbet-coerce (0.4.0) + sorbet (0.5.9892) + sorbet-static (= 0.5.9892) + sorbet-coerce (0.5.0) polyfill (~> 1.8) safe_type (~> 1.1, >= 1.1.1) sorbet-runtime (>= 0.4.4704) - sorbet-runtime (0.5.5815) - sorbet-static (0.5.5815-universal-darwin-19) - sprockets (4.0.2) + sorbet-runtime (0.5.9892) + sorbet-static (0.5.9892-universal-darwin-14) + sorbet-static (0.5.9892-universal-darwin-15) + sorbet-static (0.5.9892-universal-darwin-16) + sorbet-static (0.5.9892-universal-darwin-17) + sorbet-static (0.5.9892-universal-darwin-18) + sorbet-static (0.5.9892-universal-darwin-19) + sorbet-static (0.5.9892-universal-darwin-20) + sorbet-static (0.5.9892-universal-darwin-21) + sorbet-static (0.5.9892-x86_64-linux) + sprockets (4.0.3) concurrent-ruby (~> 1.0) rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) + sprockets-rails (3.4.2) + actionpack (>= 5.2) + activesupport (>= 5.2) sprockets (>= 3.0.0) sqlite3 (1.4.2) - thor (1.0.1) - thread_safe (0.3.6) - tzinfo (1.2.7) - thread_safe (~> 0.1) - web-console (4.0.4) + thor (1.2.1) + tzinfo (2.0.4) + concurrent-ruby (~> 1.0) + web-console (4.2.0) actionview (>= 6.0.0) activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - websocket-driver (0.7.3) + websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) - zeitwerk (2.3.1) + zeitwerk (2.5.4) PLATFORMS ruby @@ -180,17 +190,14 @@ PLATFORMS DEPENDENCIES byebug jbuilder (~> 2.7) - puma (~> 4.1) - rails (~> 6.0.3) + puma (~> 5.0) + rails (~> 6.1.4) sorbet sorbet-rails! sorbet-runtime sqlite3 (~> 1.4) tzinfo-data - web-console (>= 3.3.0) - -RUBY VERSION - ruby 2.5.5p157 + web-console (>= 4.1.0) BUNDLED WITH - 2.2.0 + 2.2.32 diff --git a/spec/test_data/v5.2/expected_active_record_relation.rbi b/spec/test_data/v5.2/expected_active_record_relation.rbi index 903e8741..b31a7af6 100644 --- a/spec/test_data/v5.2/expected_active_record_relation.rbi +++ b/spec/test_data/v5.2/expected_active_record_relation.rbi @@ -133,7 +133,7 @@ class ActiveRecord::Relation end class ActiveRecord::AssociationRelation < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(*args, &block); end @@ -149,7 +149,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation end class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(attributes = nil, &block); end diff --git a/spec/test_data/v5.2/expected_attachment.rbi b/spec/test_data/v5.2/expected_attachment.rbi index 165402ef..0075178a 100644 --- a/spec/test_data/v5.2/expected_attachment.rbi +++ b/spec/test_data/v5.2/expected_attachment.rbi @@ -281,20 +281,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_blob.rbi b/spec/test_data/v5.2/expected_blob.rbi index 1b1e3da1..fc748ef6 100644 --- a/spec/test_data/v5.2/expected_blob.rbi +++ b/spec/test_data/v5.2/expected_blob.rbi @@ -88,7 +88,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) } def unattached(*args); end @@ -101,7 +101,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end @@ -113,7 +113,7 @@ end class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end diff --git a/spec/test_data/v5.2/expected_habtm_subjects.rbi b/spec/test_data/v5.2/expected_habtm_subjects.rbi index 5f3002b4..5f106846 100644 --- a/spec/test_data/v5.2/expected_habtm_subjects.rbi +++ b/spec/test_data/v5.2/expected_habtm_subjects.rbi @@ -182,7 +182,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) } def all; end @@ -296,7 +296,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end @@ -480,7 +480,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v5.2/expected_habtm_wizards.rbi b/spec/test_data/v5.2/expected_habtm_wizards.rbi index c3cdc688..b866c464 100644 --- a/spec/test_data/v5.2/expected_habtm_wizards.rbi +++ b/spec/test_data/v5.2/expected_habtm_wizards.rbi @@ -182,7 +182,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) } def all; end @@ -296,7 +296,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end @@ -480,7 +480,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v5.2/expected_headmaster.rbi b/spec/test_data/v5.2/expected_headmaster.rbi index e7b03335..e55a4ef2 100644 --- a/spec/test_data/v5.2/expected_headmaster.rbi +++ b/spec/test_data/v5.2/expected_headmaster.rbi @@ -311,20 +311,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_internal_metadata.rbi b/spec/test_data/v5.2/expected_internal_metadata.rbi index bbf8d737..fe5494fb 100644 --- a/spec/test_data/v5.2/expected_internal_metadata.rbi +++ b/spec/test_data/v5.2/expected_internal_metadata.rbi @@ -281,20 +281,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_potion.rbi b/spec/test_data/v5.2/expected_potion.rbi index 6c421ba1..16dc3626 100644 --- a/spec/test_data/v5.2/expected_potion.rbi +++ b/spec/test_data/v5.2/expected_potion.rbi @@ -263,20 +263,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_robe.rbi b/spec/test_data/v5.2/expected_robe.rbi index a1fe689c..5483d8bb 100644 --- a/spec/test_data/v5.2/expected_robe.rbi +++ b/spec/test_data/v5.2/expected_robe.rbi @@ -284,20 +284,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_schema_migration.rbi b/spec/test_data/v5.2/expected_schema_migration.rbi index f6b6d11e..68747edc 100644 --- a/spec/test_data/v5.2/expected_schema_migration.rbi +++ b/spec/test_data/v5.2/expected_schema_migration.rbi @@ -254,20 +254,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_school.rbi b/spec/test_data/v5.2/expected_school.rbi index 543c2d44..99817305 100644 --- a/spec/test_data/v5.2/expected_school.rbi +++ b/spec/test_data/v5.2/expected_school.rbi @@ -284,20 +284,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_spell.rbi b/spec/test_data/v5.2/expected_spell.rbi index fc0a8044..838e9f7d 100644 --- a/spec/test_data/v5.2/expected_spell.rbi +++ b/spec/test_data/v5.2/expected_spell.rbi @@ -275,20 +275,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi b/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi index f82804f9..68105897 100644 --- a/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +++ b/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi @@ -302,20 +302,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_spell_book.rbi b/spec/test_data/v5.2/expected_spell_book.rbi index 635d7f3a..34baa213 100644 --- a/spec/test_data/v5.2/expected_spell_book.rbi +++ b/spec/test_data/v5.2/expected_spell_book.rbi @@ -154,7 +154,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) } def biology(*args); end @@ -173,7 +173,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end @@ -191,7 +191,7 @@ end class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end diff --git a/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi b/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi index 3d5047c7..43d92069 100644 --- a/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +++ b/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi @@ -159,7 +159,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) } def all; end @@ -273,7 +273,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end @@ -457,7 +457,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi b/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi index 36b16552..4786dfa9 100644 --- a/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +++ b/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi @@ -302,20 +302,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_squib.rbi b/spec/test_data/v5.2/expected_squib.rbi index 49afddca..5bf3b92d 100644 --- a/spec/test_data/v5.2/expected_squib.rbi +++ b/spec/test_data/v5.2/expected_squib.rbi @@ -505,7 +505,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -572,7 +572,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -638,7 +638,7 @@ end class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v5.2/expected_subject.rbi b/spec/test_data/v5.2/expected_subject.rbi index fb6ba40d..3fd2c4b8 100644 --- a/spec/test_data/v5.2/expected_subject.rbi +++ b/spec/test_data/v5.2/expected_subject.rbi @@ -275,20 +275,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi b/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi index 244d52db..c9db9283 100644 --- a/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +++ b/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi @@ -302,20 +302,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_wand.rbi b/spec/test_data/v5.2/expected_wand.rbi index 1e96f170..a02c429b 100644 --- a/spec/test_data/v5.2/expected_wand.rbi +++ b/spec/test_data/v5.2/expected_wand.rbi @@ -254,7 +254,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) } def basilisk_horn(*args); end @@ -273,7 +273,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end @@ -291,7 +291,7 @@ end class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end diff --git a/spec/test_data/v5.2/expected_wizard.rbi b/spec/test_data/v5.2/expected_wizard.rbi index 54c496b5..90202f24 100644 --- a/spec/test_data/v5.2/expected_wizard.rbi +++ b/spec/test_data/v5.2/expected_wizard.rbi @@ -581,7 +581,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -648,7 +648,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -714,7 +714,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi b/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi index abcfd67f..f147b5d9 100644 --- a/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +++ b/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi @@ -302,20 +302,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi b/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi index c4e19137..3b2f4868 100644 --- a/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +++ b/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi @@ -575,7 +575,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -642,7 +642,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -708,7 +708,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v6.0/expected_active_record_relation.rbi b/spec/test_data/v6.0/expected_active_record_relation.rbi index 1afa2d3c..1b25c433 100644 --- a/spec/test_data/v6.0/expected_active_record_relation.rbi +++ b/spec/test_data/v6.0/expected_active_record_relation.rbi @@ -133,7 +133,7 @@ class ActiveRecord::Relation end class ActiveRecord::AssociationRelation < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(attributes = nil, &block); end @@ -149,7 +149,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation end class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(attributes = nil, &block); end diff --git a/spec/test_data/v6.0/expected_attachment.rbi b/spec/test_data/v6.0/expected_attachment.rbi index 2a5afbe3..bd238f0f 100644 --- a/spec/test_data/v6.0/expected_attachment.rbi +++ b/spec/test_data/v6.0/expected_attachment.rbi @@ -305,20 +305,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_blob.rbi b/spec/test_data/v6.0/expected_blob.rbi index 8ea1406c..12acebce 100644 --- a/spec/test_data/v6.0/expected_blob.rbi +++ b/spec/test_data/v6.0/expected_blob.rbi @@ -41,7 +41,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) } def unattached(*args); end @@ -54,7 +54,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end @@ -66,7 +66,7 @@ end class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end diff --git a/spec/test_data/v6.0/expected_habtm_subjects.rbi b/spec/test_data/v6.0/expected_habtm_subjects.rbi index 18a1f7de..a89c803c 100644 --- a/spec/test_data/v6.0/expected_habtm_subjects.rbi +++ b/spec/test_data/v6.0/expected_habtm_subjects.rbi @@ -194,7 +194,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) } def all; end @@ -320,7 +320,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end @@ -516,7 +516,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.0/expected_habtm_wizards.rbi b/spec/test_data/v6.0/expected_habtm_wizards.rbi index f5d7eafc..f6d81c37 100644 --- a/spec/test_data/v6.0/expected_habtm_wizards.rbi +++ b/spec/test_data/v6.0/expected_habtm_wizards.rbi @@ -194,7 +194,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) } def all; end @@ -320,7 +320,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end @@ -516,7 +516,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.0/expected_headmaster.rbi b/spec/test_data/v6.0/expected_headmaster.rbi index e3caa5f8..687dcbd6 100644 --- a/spec/test_data/v6.0/expected_headmaster.rbi +++ b/spec/test_data/v6.0/expected_headmaster.rbi @@ -335,20 +335,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_internal_metadata.rbi b/spec/test_data/v6.0/expected_internal_metadata.rbi index d44131b8..e327ac8f 100644 --- a/spec/test_data/v6.0/expected_internal_metadata.rbi +++ b/spec/test_data/v6.0/expected_internal_metadata.rbi @@ -305,20 +305,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_potion.rbi b/spec/test_data/v6.0/expected_potion.rbi index 9feda064..0bf8b964 100644 --- a/spec/test_data/v6.0/expected_potion.rbi +++ b/spec/test_data/v6.0/expected_potion.rbi @@ -287,20 +287,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_robe.rbi b/spec/test_data/v6.0/expected_robe.rbi index c2dbe7f8..668b4158 100644 --- a/spec/test_data/v6.0/expected_robe.rbi +++ b/spec/test_data/v6.0/expected_robe.rbi @@ -308,20 +308,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_schema_migration.rbi b/spec/test_data/v6.0/expected_schema_migration.rbi index 2bdd145c..da8370ed 100644 --- a/spec/test_data/v6.0/expected_schema_migration.rbi +++ b/spec/test_data/v6.0/expected_schema_migration.rbi @@ -278,20 +278,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_school.rbi b/spec/test_data/v6.0/expected_school.rbi index 74000693..2bc9067a 100644 --- a/spec/test_data/v6.0/expected_school.rbi +++ b/spec/test_data/v6.0/expected_school.rbi @@ -308,20 +308,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_spell.rbi b/spec/test_data/v6.0/expected_spell.rbi index 78232884..e113979c 100644 --- a/spec/test_data/v6.0/expected_spell.rbi +++ b/spec/test_data/v6.0/expected_spell.rbi @@ -299,20 +299,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi b/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi index 17bf259a..c3c9f99c 100644 --- a/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +++ b/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi @@ -326,20 +326,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_spell_book.rbi b/spec/test_data/v6.0/expected_spell_book.rbi index e735897f..121a89dc 100644 --- a/spec/test_data/v6.0/expected_spell_book.rbi +++ b/spec/test_data/v6.0/expected_spell_book.rbi @@ -163,7 +163,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) } def biology(*args); end @@ -191,7 +191,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end @@ -218,7 +218,7 @@ end class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end diff --git a/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi b/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi index 0814e106..838afea4 100644 --- a/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +++ b/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi @@ -171,7 +171,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) } def all; end @@ -297,7 +297,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end @@ -493,7 +493,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi b/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi index 41e4a675..535c5ffb 100644 --- a/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +++ b/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi @@ -326,20 +326,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_squib.rbi b/spec/test_data/v6.0/expected_squib.rbi index d1e426db..79c00a7e 100644 --- a/spec/test_data/v6.0/expected_squib.rbi +++ b/spec/test_data/v6.0/expected_squib.rbi @@ -446,7 +446,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -564,7 +564,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -681,7 +681,7 @@ end class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v6.0/expected_subject.rbi b/spec/test_data/v6.0/expected_subject.rbi index a4d9bff1..831fab78 100644 --- a/spec/test_data/v6.0/expected_subject.rbi +++ b/spec/test_data/v6.0/expected_subject.rbi @@ -299,20 +299,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi b/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi index 13bf0ce1..015624ae 100644 --- a/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +++ b/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi @@ -326,20 +326,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_wand.rbi b/spec/test_data/v6.0/expected_wand.rbi index 153fd2e6..9d8ba425 100644 --- a/spec/test_data/v6.0/expected_wand.rbi +++ b/spec/test_data/v6.0/expected_wand.rbi @@ -266,7 +266,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) } def basilisk_horn(*args); end @@ -297,7 +297,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end @@ -327,7 +327,7 @@ end class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end diff --git a/spec/test_data/v6.0/expected_wizard.rbi b/spec/test_data/v6.0/expected_wizard.rbi index 42257693..bc1fbc52 100644 --- a/spec/test_data/v6.0/expected_wizard.rbi +++ b/spec/test_data/v6.0/expected_wizard.rbi @@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -757,7 +757,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi b/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi index 61ca2e7a..6948a55c 100644 --- a/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +++ b/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi @@ -326,20 +326,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi b/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi index 235aaa9a..814ca593 100644 --- a/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +++ b/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi @@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Gryffindor(*args); end @@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end @@ -757,7 +757,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Gryffindor(*args); end diff --git a/spec/test_data/v6.1/expected_active_record_relation.rbi b/spec/test_data/v6.1/expected_active_record_relation.rbi index 1afa2d3c..1b25c433 100644 --- a/spec/test_data/v6.1/expected_active_record_relation.rbi +++ b/spec/test_data/v6.1/expected_active_record_relation.rbi @@ -133,7 +133,7 @@ class ActiveRecord::Relation end class ActiveRecord::AssociationRelation < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(attributes = nil, &block); end @@ -149,7 +149,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation end class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation - Elem = type_member(fixed: T.untyped) + Elem = type_member {{fixed: T.untyped}} sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) } def new(attributes = nil, &block); end diff --git a/spec/test_data/v6.1/expected_attachment.rbi b/spec/test_data/v6.1/expected_attachment.rbi index f1207e5e..101f074c 100644 --- a/spec/test_data/v6.1/expected_attachment.rbi +++ b/spec/test_data/v6.1/expected_attachment.rbi @@ -311,20 +311,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveStorage::Attachment::ActiveRelation_WhereNot include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} end class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Attachment::CustomFinderMethods include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Attachment) + Elem = type_member {{fixed: ActiveStorage::Attachment}} sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_blob.rbi b/spec/test_data/v6.1/expected_blob.rbi index e7580b41..e747e9b4 100644 --- a/spec/test_data/v6.1/expected_blob.rbi +++ b/spec/test_data/v6.1/expected_blob.rbi @@ -41,7 +41,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) } def unattached(*args); end @@ -54,7 +54,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso include ActiveStorage::Blob::ActiveRelation_WhereNot include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end @@ -66,7 +66,7 @@ end class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Blob::CustomFinderMethods include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Blob) + Elem = type_member {{fixed: ActiveStorage::Blob}} sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) } def unattached(*args); end diff --git a/spec/test_data/v6.1/expected_habtm_subjects.rbi b/spec/test_data/v6.1/expected_habtm_subjects.rbi index 18a1f7de..a89c803c 100644 --- a/spec/test_data/v6.1/expected_habtm_subjects.rbi +++ b/spec/test_data/v6.1/expected_habtm_subjects.rbi @@ -194,7 +194,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) } def all; end @@ -320,7 +320,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end @@ -516,7 +516,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.1/expected_habtm_wizards.rbi b/spec/test_data/v6.1/expected_habtm_wizards.rbi index f5d7eafc..f6d81c37 100644 --- a/spec/test_data/v6.1/expected_habtm_wizards.rbi +++ b/spec/test_data/v6.1/expected_habtm_wizards.rbi @@ -194,7 +194,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) } def all; end @@ -320,7 +320,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end @@ -516,7 +516,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.1/expected_headmaster.rbi b/spec/test_data/v6.1/expected_headmaster.rbi index f498916f..651a5440 100644 --- a/spec/test_data/v6.1/expected_headmaster.rbi +++ b/spec/test_data/v6.1/expected_headmaster.rbi @@ -341,20 +341,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Headmaster::ActiveRelation_WhereNot include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} end class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Headmaster::CustomFinderMethods include Headmaster::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Headmaster) + Elem = type_member {{fixed: Headmaster}} sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_internal_metadata.rbi b/spec/test_data/v6.1/expected_internal_metadata.rbi index 8ec75e01..30feac9d 100644 --- a/spec/test_data/v6.1/expected_internal_metadata.rbi +++ b/spec/test_data/v6.1/expected_internal_metadata.rbi @@ -311,20 +311,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} end class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::InternalMetadata::CustomFinderMethods include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::InternalMetadata) + Elem = type_member {{fixed: ActiveRecord::InternalMetadata}} sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_potion.rbi b/spec/test_data/v6.1/expected_potion.rbi index 9abf096b..ad67f585 100644 --- a/spec/test_data/v6.1/expected_potion.rbi +++ b/spec/test_data/v6.1/expected_potion.rbi @@ -293,20 +293,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Potion::ActiveRelation_WhereNot include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} end class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Potion::CustomFinderMethods include Potion::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Potion) + Elem = type_member {{fixed: Potion}} sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_record.rbi b/spec/test_data/v6.1/expected_record.rbi index 59db33c2..473e55c4 100644 --- a/spec/test_data/v6.1/expected_record.rbi +++ b/spec/test_data/v6.1/expected_record.rbi @@ -272,20 +272,20 @@ class ActiveStorage::Record::ActiveRecord_Relation < ActiveRecord::Relation include ActiveStorage::Record::ActiveRelation_WhereNot include ActiveStorage::Record::CustomFinderMethods include ActiveStorage::Record::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::Record) + Elem = type_member {{fixed: ActiveStorage::Record}} end class ActiveStorage::Record::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveStorage::Record::ActiveRelation_WhereNot include ActiveStorage::Record::CustomFinderMethods include ActiveStorage::Record::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Record) + Elem = type_member {{fixed: ActiveStorage::Record}} end class ActiveStorage::Record::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::Record::CustomFinderMethods include ActiveStorage::Record::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::Record) + Elem = type_member {{fixed: ActiveStorage::Record}} sig { params(records: T.any(ActiveStorage::Record, T::Array[ActiveStorage::Record])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_robe.rbi b/spec/test_data/v6.1/expected_robe.rbi index 04511881..2668efd4 100644 --- a/spec/test_data/v6.1/expected_robe.rbi +++ b/spec/test_data/v6.1/expected_robe.rbi @@ -314,20 +314,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Robe::ActiveRelation_WhereNot include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} end class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Robe::CustomFinderMethods include Robe::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Robe) + Elem = type_member {{fixed: Robe}} sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_schema_migration.rbi b/spec/test_data/v6.1/expected_schema_migration.rbi index fe8f0f18..0f9ca9c1 100644 --- a/spec/test_data/v6.1/expected_schema_migration.rbi +++ b/spec/test_data/v6.1/expected_schema_migration.rbi @@ -284,20 +284,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} end class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveRecord::SchemaMigration::CustomFinderMethods include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveRecord::SchemaMigration) + Elem = type_member {{fixed: ActiveRecord::SchemaMigration}} sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_school.rbi b/spec/test_data/v6.1/expected_school.rbi index 46efb803..e7b9c66c 100644 --- a/spec/test_data/v6.1/expected_school.rbi +++ b/spec/test_data/v6.1/expected_school.rbi @@ -314,20 +314,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include School::ActiveRelation_WhereNot include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} end class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include School::CustomFinderMethods include School::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: School) + Elem = type_member {{fixed: School}} sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_spell.rbi b/spec/test_data/v6.1/expected_spell.rbi index 96f702dc..366a716d 100644 --- a/spec/test_data/v6.1/expected_spell.rbi +++ b/spec/test_data/v6.1/expected_spell.rbi @@ -305,20 +305,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::ActiveRelation_WhereNot include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} end class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::CustomFinderMethods include Spell::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell) + Elem = type_member {{fixed: Spell}} sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi b/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi index e12ea70c..3e59f10f 100644 --- a/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +++ b/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi @@ -332,20 +332,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} end class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Spell::HABTM_SpellBooks::CustomFinderMethods include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Spell::HABTM_SpellBooks) + Elem = type_member {{fixed: Spell::HABTM_SpellBooks}} sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_spell_book.rbi b/spec/test_data/v6.1/expected_spell_book.rbi index 6cff6ecc..d00eb8bb 100644 --- a/spec/test_data/v6.1/expected_spell_book.rbi +++ b/spec/test_data/v6.1/expected_spell_book.rbi @@ -163,7 +163,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) } def biology(*args); end @@ -191,7 +191,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel include SpellBook::ActiveRelation_WhereNot include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end @@ -218,7 +218,7 @@ end class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::CustomFinderMethods include SpellBook::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook) + Elem = type_member {{fixed: SpellBook}} sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) } def biology(*args); end diff --git a/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi b/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi index 0814e106..838afea4 100644 --- a/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +++ b/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi @@ -171,7 +171,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) } def all; end @@ -297,7 +297,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end @@ -493,7 +493,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A include Enumerable extend T::Sig extend T::Generic - Elem = type_member(fixed: SpellBook::HABTM_SpellBooks) + Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}} sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) } def all; end diff --git a/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi b/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi index c3062eeb..9ce78142 100644 --- a/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +++ b/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi @@ -332,20 +332,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include SpellBook::HABTM_Spells::ActiveRelation_WhereNot include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} end class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include SpellBook::HABTM_Spells::CustomFinderMethods include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: SpellBook::HABTM_Spells) + Elem = type_member {{fixed: SpellBook::HABTM_Spells}} sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_squib.rbi b/spec/test_data/v6.1/expected_squib.rbi index 4b7e9440..fbac8d3f 100644 --- a/spec/test_data/v6.1/expected_squib.rbi +++ b/spec/test_data/v6.1/expected_squib.rbi @@ -476,7 +476,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) } def Alastor_Mad_Eye_Moody(*args); end @@ -624,7 +624,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio include Squib::ActiveRelation_WhereNot include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end @@ -771,7 +771,7 @@ end class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Squib::CustomFinderMethods include Squib::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Squib) + Elem = type_member {{fixed: Squib}} sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end diff --git a/spec/test_data/v6.1/expected_subject.rbi b/spec/test_data/v6.1/expected_subject.rbi index 030bbe63..7602ff90 100644 --- a/spec/test_data/v6.1/expected_subject.rbi +++ b/spec/test_data/v6.1/expected_subject.rbi @@ -305,20 +305,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::ActiveRelation_WhereNot include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} end class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::CustomFinderMethods include Subject::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject) + Elem = type_member {{fixed: Subject}} sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi b/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi index 6a8acba8..9774a24d 100644 --- a/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +++ b/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi @@ -332,20 +332,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Subject::HABTM_Wizards::ActiveRelation_WhereNot include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} end class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Subject::HABTM_Wizards::CustomFinderMethods include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Subject::HABTM_Wizards) + Elem = type_member {{fixed: Subject::HABTM_Wizards}} sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_variant_record.rbi b/spec/test_data/v6.1/expected_variant_record.rbi index e25ce866..8d0e12a3 100644 --- a/spec/test_data/v6.1/expected_variant_record.rbi +++ b/spec/test_data/v6.1/expected_variant_record.rbi @@ -38,7 +38,7 @@ class ActiveStorage::VariantRecord::ActiveRecord_Relation < ActiveRecord::Relati include ActiveStorage::VariantRecord::ActiveRelation_WhereNot include ActiveStorage::VariantRecord::CustomFinderMethods include ActiveStorage::VariantRecord::QueryMethodsReturningRelation - Elem = type_member(fixed: ActiveStorage::VariantRecord) + Elem = type_member {{fixed: ActiveStorage::VariantRecord}} sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_Relation) } def with_attached_image(*args); end @@ -48,7 +48,7 @@ class ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation < ActiveRec include ActiveStorage::VariantRecord::ActiveRelation_WhereNot include ActiveStorage::VariantRecord::CustomFinderMethods include ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::VariantRecord) + Elem = type_member {{fixed: ActiveStorage::VariantRecord}} sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) } def with_attached_image(*args); end @@ -57,7 +57,7 @@ end class ActiveStorage::VariantRecord::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include ActiveStorage::VariantRecord::CustomFinderMethods include ActiveStorage::VariantRecord::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: ActiveStorage::VariantRecord) + Elem = type_member {{fixed: ActiveStorage::VariantRecord}} sig { params(args: T.untyped).returns(ActiveStorage::VariantRecord::ActiveRecord_AssociationRelation) } def with_attached_image(*args); end diff --git a/spec/test_data/v6.1/expected_wand.rbi b/spec/test_data/v6.1/expected_wand.rbi index 2d463aeb..abaf7cf8 100644 --- a/spec/test_data/v6.1/expected_wand.rbi +++ b/spec/test_data/v6.1/expected_wand.rbi @@ -266,7 +266,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) } def basilisk_horn(*args); end @@ -297,7 +297,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wand::ActiveRelation_WhereNot include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end @@ -327,7 +327,7 @@ end class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wand::CustomFinderMethods include Wand::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wand) + Elem = type_member {{fixed: Wand}} sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) } def basilisk_horn(*args); end diff --git a/spec/test_data/v6.1/expected_wizard.rbi b/spec/test_data/v6.1/expected_wizard.rbi index b3be9e8e..3884877c 100644 --- a/spec/test_data/v6.1/expected_wizard.rbi +++ b/spec/test_data/v6.1/expected_wizard.rbi @@ -552,7 +552,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Alastor_Mad_Eye_Moody(*args); end @@ -700,7 +700,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end @@ -847,7 +847,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end diff --git a/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi b/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi index 6c9cfd0a..f7d551f1 100644 --- a/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +++ b/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi @@ -332,20 +332,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation include Wizard::HABTM_Subjects::ActiveRelation_WhereNot include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} end class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::HABTM_Subjects::CustomFinderMethods include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard::HABTM_Subjects) + Elem = type_member {{fixed: Wizard::HABTM_Subjects}} sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) } def <<(*records); end diff --git a/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi b/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi index 9f90d859..db2b31c5 100644 --- a/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +++ b/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi @@ -552,7 +552,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) } def Alastor_Mad_Eye_Moody(*args); end @@ -700,7 +700,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati include Wizard::ActiveRelation_WhereNot include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end @@ -847,7 +847,7 @@ end class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy include Wizard::CustomFinderMethods include Wizard::QueryMethodsReturningAssociationRelation - Elem = type_member(fixed: Wizard) + Elem = type_member {{fixed: Wizard}} sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) } def Alastor_Mad_Eye_Moody(*args); end