sorbet-rails 0.7.23 → 0.7.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/lib/sorbet-rails/active_record_rbi_formatter.rb +1 -1
  4. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +1 -1
  5. data/lib/sorbet-rails/model_rbi_formatter.rb +4 -1
  6. data/spec/test_data/v5.2/expected_active_record_base.rbi +4 -4
  7. data/spec/test_data/v5.2/expected_active_record_relation.rbi +4 -4
  8. data/spec/test_data/v5.2/expected_attachment.rbi +2 -2
  9. data/spec/test_data/v5.2/expected_blob.rbi +2 -2
  10. data/spec/test_data/v5.2/expected_headmaster.rbi +2 -2
  11. data/spec/test_data/v5.2/expected_internal_metadata.rbi +2 -2
  12. data/spec/test_data/v5.2/expected_potion.rbi +2 -2
  13. data/spec/test_data/v5.2/expected_robe.rbi +2 -2
  14. data/spec/test_data/v5.2/expected_schema_migration.rbi +2 -2
  15. data/spec/test_data/v5.2/expected_school.rbi +2 -2
  16. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +2 -2
  17. data/spec/test_data/v5.2/expected_spell.rbi +2 -2
  18. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +2 -2
  19. data/spec/test_data/v5.2/expected_spell_book.rbi +2 -2
  20. data/spec/test_data/v5.2/expected_squib.rbi +2 -2
  21. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +2 -2
  22. data/spec/test_data/v5.2/expected_subject.rbi +2 -2
  23. data/spec/test_data/v5.2/expected_wand.rbi +2 -2
  24. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +2 -2
  25. data/spec/test_data/v5.2/expected_wizard.rbi +2 -2
  26. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +2 -2
  27. data/spec/test_data/v6.0/expected_active_record_base.rbi +4 -4
  28. data/spec/test_data/v6.0/expected_active_record_relation.rbi +4 -4
  29. data/spec/test_data/v6.0/expected_attachment.rbi +2 -2
  30. data/spec/test_data/v6.0/expected_blob.rbi +2 -2
  31. data/spec/test_data/v6.0/expected_headmaster.rbi +2 -2
  32. data/spec/test_data/v6.0/expected_internal_metadata.rbi +2 -2
  33. data/spec/test_data/v6.0/expected_potion.rbi +2 -2
  34. data/spec/test_data/v6.0/expected_robe.rbi +2 -2
  35. data/spec/test_data/v6.0/expected_schema_migration.rbi +2 -2
  36. data/spec/test_data/v6.0/expected_school.rbi +2 -2
  37. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +2 -2
  38. data/spec/test_data/v6.0/expected_spell.rbi +2 -2
  39. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +2 -2
  40. data/spec/test_data/v6.0/expected_spell_book.rbi +2 -2
  41. data/spec/test_data/v6.0/expected_squib.rbi +2 -2
  42. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +2 -2
  43. data/spec/test_data/v6.0/expected_subject.rbi +2 -2
  44. data/spec/test_data/v6.0/expected_wand.rbi +2 -2
  45. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +2 -2
  46. data/spec/test_data/v6.0/expected_wizard.rbi +2 -2
  47. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +2 -2
  48. data/spec/test_data/v6.1/expected_active_record_base.rbi +4 -4
  49. data/spec/test_data/v6.1/expected_active_record_relation.rbi +4 -4
  50. data/spec/test_data/v6.1/expected_attachment.rbi +2 -2
  51. data/spec/test_data/v6.1/expected_blob.rbi +2 -2
  52. data/spec/test_data/v6.1/expected_headmaster.rbi +2 -2
  53. data/spec/test_data/v6.1/expected_internal_metadata.rbi +2 -2
  54. data/spec/test_data/v6.1/expected_potion.rbi +2 -2
  55. data/spec/test_data/v6.1/expected_record.rbi +2 -2
  56. data/spec/test_data/v6.1/expected_robe.rbi +2 -2
  57. data/spec/test_data/v6.1/expected_schema_migration.rbi +2 -2
  58. data/spec/test_data/v6.1/expected_school.rbi +2 -2
  59. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +2 -2
  60. data/spec/test_data/v6.1/expected_spell.rbi +2 -2
  61. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +2 -2
  62. data/spec/test_data/v6.1/expected_spell_book.rbi +2 -2
  63. data/spec/test_data/v6.1/expected_squib.rbi +2 -2
  64. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +2 -2
  65. data/spec/test_data/v6.1/expected_subject.rbi +2 -2
  66. data/spec/test_data/v6.1/expected_variant_record.rbi +2 -2
  67. data/spec/test_data/v6.1/expected_wand.rbi +2 -2
  68. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +2 -2
  69. data/spec/test_data/v6.1/expected_wizard.rbi +2 -2
  70. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +2 -2
  71. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bd32197a22894837a0a3c3b4da21749a48173f71611b239e6247f5ad1f1bfdc
4
- data.tar.gz: 640fd1e08228df254d3e424d2b4219360733d3b58934acc86f07eca28440986c
3
+ metadata.gz: 6e80eb4263d607a23eec096f9751339d944226b2feb2c1bc52ece8d2b7531128
4
+ data.tar.gz: df11889efd6ebcddc194293ba868e80d9a2b1e88d4783d10aeb954a99a1e1422
5
5
  SHA512:
6
- metadata.gz: 90a7b59003f13347b27eb9286ac83a35fcdb48f4b3527359b979d03ccdc0b67e06ce42fe01ad4855994fba770b8e820148850c8906f724fd8268ce1915b8cb6d
7
- data.tar.gz: b89286acad5f392a5bd34e6eb8c12864d91b3e8992c12c7747d0ffbe6298be04841d09a27458f91f423ba71dfa463a99ccd3becb2758bc14b7f823a15569dd3b
6
+ metadata.gz: 04f2af9fb19e21bf584686158e874a33553551226e5c926d497f8c981199226a63d80f46e8b6badba42e6198508bb593a89d8a619849c4d71319c858dfea01ed
7
+ data.tar.gz: 0e14167c972be954efa22d1955dbb36938a73199f094c698a69759727eb95961b0a46e31a1a2b6d3bd3d9bb07cc60f3f16a755ae4c08e80f25f08fa2f4d713b8
data/README.md CHANGED
@@ -433,6 +433,14 @@ arr = [Model.recent, Model.old].flatten # T::Array[Model::ActiveRecord_Relation]
433
433
  arr = [Model.recent, Model.old].map(&:to_a).flatten # T::Array[Model]
434
434
  ```
435
435
 
436
+ `flat_map` has a similar issue.
437
+
438
+ ```ruby
439
+ foo.bars.flat_map { |b| b.scope } # T::Array[T.untyped]
440
+
441
+ foo.bars.flat_map { |b| b.scope.to_a } # T::Array[Scope]
442
+ ```
443
+
436
444
  ### Avoid `and_call_original` in rspecs
437
445
 
438
446
  If you run into the following issue when running rspec, it's likely because you're using `expect(:method_name).and_call_original` to mock a method in RSpec. We've found the double mock doesn't interact well with Sorbet's sig wrapper and caused flaky spec. The spec should be rewritten to expect the outcome of the method instead. (It still works with `expect(:method_name)` and `expect(:method_name).and_return(...)`
@@ -279,7 +279,7 @@ class SorbetRails::ActiveRecordRbiFormatter
279
279
  class_rbi.create_method(
280
280
  boolean_method,
281
281
  parameters: [
282
- Parameter.new("&block", type: "T.nilable(T.proc.params(e: #{type}).returns(T::Boolean))"),
282
+ Parameter.new("&block", type: "T.nilable(T.proc.params(e: #{type}).returns(T.nilable(T::Boolean)))"),
283
283
  ],
284
284
  return_type: "T::Boolean",
285
285
  class_method: class_method,
@@ -58,7 +58,7 @@ class SorbetRails::ModelPlugins::ActiveRecordQuerying < SorbetRails::ModelPlugin
58
58
  root,
59
59
  "select_columns", # select_column is injected by sorbet-rails
60
60
  parameters: [
61
- Parameter.new("*args", type: "T.any(String, Symbol)"),
61
+ Parameter.new("*args", type: "T.any(String, Symbol, T::Array[T.any(String, Symbol)])"),
62
62
  ],
63
63
  builtin_query_method: true,
64
64
  )
@@ -28,7 +28,10 @@ class SorbetRails::ModelRbiFormatter
28
28
  # Load all dynamic instance methods of this model by instantiating a fake model
29
29
  @model_class.new unless @model_class.abstract_class?
30
30
  rescue StandardError => err
31
- puts "#{err.class}: Note: Unable to create new instance of #{model_class_name}"
31
+ puts
32
+ puts "Note: Unable to create new instance of #{model_class_name}"
33
+ puts "Got a #{err.class}, with this message: #{err.message}"
34
+ puts
32
35
  end
33
36
  end
34
37
 
@@ -96,16 +96,16 @@ class ActiveRecord::Base
96
96
  end
97
97
  def self.find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
98
98
 
99
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
99
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
100
100
  def self.any?(&block); end
101
101
 
102
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
102
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
103
103
  def self.many?(&block); end
104
104
 
105
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
105
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
106
106
  def self.none?(&block); end
107
107
 
108
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
108
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
109
109
  def self.one?(&block); end
110
110
 
111
111
  sig { params(conditions: T.untyped).returns(T::Boolean) }
@@ -101,16 +101,16 @@ class ActiveRecord::Relation
101
101
  end
102
102
  def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
103
103
 
104
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
104
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
105
105
  def any?(&block); end
106
106
 
107
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
107
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
108
108
  def many?(&block); end
109
109
 
110
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
110
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
111
111
  def none?(&block); end
112
112
 
113
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
113
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
114
114
  def one?(&block); end
115
115
 
116
116
  sig { params(conditions: T.untyped).returns(T::Boolean) }
@@ -154,7 +154,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
154
154
  sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
155
155
  def select(&block); end
156
156
 
157
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
157
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
158
158
  def select_columns(*args); end
159
159
 
160
160
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
@@ -258,7 +258,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
258
258
  sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
259
259
  def select(&block); end
260
260
 
261
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
261
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
262
262
  def select_columns(*args); end
263
263
 
264
264
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
@@ -219,7 +219,7 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
219
219
  sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
220
220
  def select(&block); end
221
221
 
222
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
222
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
223
223
  def select_columns(*args); end
224
224
 
225
225
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
@@ -323,7 +323,7 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
323
323
  sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
324
324
  def select(&block); end
325
325
 
326
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
326
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
327
327
  def select_columns(*args); end
328
328
 
329
329
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
@@ -184,7 +184,7 @@ module Headmaster::QueryMethodsReturningRelation
184
184
  sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
185
185
  def select(&block); end
186
186
 
187
- sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_Relation) }
187
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_Relation) }
188
188
  def select_columns(*args); end
189
189
 
190
190
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
@@ -288,7 +288,7 @@ module Headmaster::QueryMethodsReturningAssociationRelation
288
288
  sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
289
289
  def select(&block); end
290
290
 
291
- sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_AssociationRelation) }
291
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_AssociationRelation) }
292
292
  def select_columns(*args); end
293
293
 
294
294
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
@@ -154,7 +154,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
154
154
  sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
155
155
  def select(&block); end
156
156
 
157
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
157
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
158
158
  def select_columns(*args); end
159
159
 
160
160
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
@@ -258,7 +258,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
258
258
  sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
259
259
  def select(&block); end
260
260
 
261
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
261
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
262
262
  def select_columns(*args); end
263
263
 
264
264
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
@@ -136,7 +136,7 @@ module Potion::QueryMethodsReturningRelation
136
136
  sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
137
137
  def select(&block); end
138
138
 
139
- sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_Relation) }
139
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_Relation) }
140
140
  def select_columns(*args); end
141
141
 
142
142
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
@@ -240,7 +240,7 @@ module Potion::QueryMethodsReturningAssociationRelation
240
240
  sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
241
241
  def select(&block); end
242
242
 
243
- sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_AssociationRelation) }
243
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_AssociationRelation) }
244
244
  def select_columns(*args); end
245
245
 
246
246
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_AssociationRelation) }
@@ -157,7 +157,7 @@ module Robe::QueryMethodsReturningRelation
157
157
  sig { params(block: T.proc.params(e: Robe).returns(T::Boolean)).returns(T::Array[Robe]) }
158
158
  def select(&block); end
159
159
 
160
- sig { params(args: T.any(String, Symbol)).returns(Robe::ActiveRecord_Relation) }
160
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Robe::ActiveRecord_Relation) }
161
161
  def select_columns(*args); end
162
162
 
163
163
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
@@ -261,7 +261,7 @@ module Robe::QueryMethodsReturningAssociationRelation
261
261
  sig { params(block: T.proc.params(e: Robe).returns(T::Boolean)).returns(T::Array[Robe]) }
262
262
  def select(&block); end
263
263
 
264
- sig { params(args: T.any(String, Symbol)).returns(Robe::ActiveRecord_AssociationRelation) }
264
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Robe::ActiveRecord_AssociationRelation) }
265
265
  def select_columns(*args); end
266
266
 
267
267
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
@@ -127,7 +127,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
127
127
  sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
128
128
  def select(&block); end
129
129
 
130
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
130
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
131
131
  def select_columns(*args); end
132
132
 
133
133
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
@@ -231,7 +231,7 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
231
231
  sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
232
232
  def select(&block); end
233
233
 
234
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
234
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
235
235
  def select_columns(*args); end
236
236
 
237
237
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
@@ -157,7 +157,7 @@ module School::QueryMethodsReturningRelation
157
157
  sig { params(block: T.proc.params(e: School).returns(T::Boolean)).returns(T::Array[School]) }
158
158
  def select(&block); end
159
159
 
160
- sig { params(args: T.any(String, Symbol)).returns(School::ActiveRecord_Relation) }
160
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(School::ActiveRecord_Relation) }
161
161
  def select_columns(*args); end
162
162
 
163
163
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
@@ -261,7 +261,7 @@ module School::QueryMethodsReturningAssociationRelation
261
261
  sig { params(block: T.proc.params(e: School).returns(T::Boolean)).returns(T::Array[School]) }
262
262
  def select(&block); end
263
263
 
264
- sig { params(args: T.any(String, Symbol)).returns(School::ActiveRecord_AssociationRelation) }
264
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(School::ActiveRecord_AssociationRelation) }
265
265
  def select_columns(*args); end
266
266
 
267
267
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_AssociationRelation) }
@@ -175,7 +175,7 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
175
175
  sig { params(block: T.proc.params(e: Spell::HABTM_SpellBooks).returns(T::Boolean)).returns(T::Array[Spell::HABTM_SpellBooks]) }
176
176
  def select(&block); end
177
177
 
178
- sig { params(args: T.any(String, Symbol)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
178
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
179
179
  def select_columns(*args); end
180
180
 
181
181
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
@@ -279,7 +279,7 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
279
279
  sig { params(block: T.proc.params(e: Spell::HABTM_SpellBooks).returns(T::Boolean)).returns(T::Array[Spell::HABTM_SpellBooks]) }
280
280
  def select(&block); end
281
281
 
282
- sig { params(args: T.any(String, Symbol)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
282
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
283
283
  def select_columns(*args); end
284
284
 
285
285
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
@@ -148,7 +148,7 @@ module Spell::QueryMethodsReturningRelation
148
148
  sig { params(block: T.proc.params(e: Spell).returns(T::Boolean)).returns(T::Array[Spell]) }
149
149
  def select(&block); end
150
150
 
151
- sig { params(args: T.any(String, Symbol)).returns(Spell::ActiveRecord_Relation) }
151
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::ActiveRecord_Relation) }
152
152
  def select_columns(*args); end
153
153
 
154
154
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
@@ -252,7 +252,7 @@ module Spell::QueryMethodsReturningAssociationRelation
252
252
  sig { params(block: T.proc.params(e: Spell).returns(T::Boolean)).returns(T::Array[Spell]) }
253
253
  def select(&block); end
254
254
 
255
- sig { params(args: T.any(String, Symbol)).returns(Spell::ActiveRecord_AssociationRelation) }
255
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::ActiveRecord_AssociationRelation) }
256
256
  def select_columns(*args); end
257
257
 
258
258
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
@@ -175,7 +175,7 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
175
175
  sig { params(block: T.proc.params(e: SpellBook::HABTM_Spells).returns(T::Boolean)).returns(T::Array[SpellBook::HABTM_Spells]) }
176
176
  def select(&block); end
177
177
 
178
- sig { params(args: T.any(String, Symbol)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
178
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
179
179
  def select_columns(*args); end
180
180
 
181
181
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
@@ -279,7 +279,7 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
279
279
  sig { params(block: T.proc.params(e: SpellBook::HABTM_Spells).returns(T::Boolean)).returns(T::Array[SpellBook::HABTM_Spells]) }
280
280
  def select(&block); end
281
281
 
282
- sig { params(args: T.any(String, Symbol)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
282
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
283
283
  def select_columns(*args); end
284
284
 
285
285
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
@@ -303,7 +303,7 @@ module SpellBook::QueryMethodsReturningRelation
303
303
  sig { params(block: T.proc.params(e: SpellBook).returns(T::Boolean)).returns(T::Array[SpellBook]) }
304
304
  def select(&block); end
305
305
 
306
- sig { params(args: T.any(String, Symbol)).returns(SpellBook::ActiveRecord_Relation) }
306
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::ActiveRecord_Relation) }
307
307
  def select_columns(*args); end
308
308
 
309
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
@@ -407,7 +407,7 @@ module SpellBook::QueryMethodsReturningAssociationRelation
407
407
  sig { params(block: T.proc.params(e: SpellBook).returns(T::Boolean)).returns(T::Array[SpellBook]) }
408
408
  def select(&block); end
409
409
 
410
- sig { params(args: T.any(String, Symbol)).returns(SpellBook::ActiveRecord_AssociationRelation) }
410
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::ActiveRecord_AssociationRelation) }
411
411
  def select_columns(*args); end
412
412
 
413
413
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
@@ -798,7 +798,7 @@ module Squib::QueryMethodsReturningRelation
798
798
  sig { params(block: T.proc.params(e: Squib).returns(T::Boolean)).returns(T::Array[Squib]) }
799
799
  def select(&block); end
800
800
 
801
- sig { params(args: T.any(String, Symbol)).returns(Squib::ActiveRecord_Relation) }
801
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Squib::ActiveRecord_Relation) }
802
802
  def select_columns(*args); end
803
803
 
804
804
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
@@ -902,7 +902,7 @@ module Squib::QueryMethodsReturningAssociationRelation
902
902
  sig { params(block: T.proc.params(e: Squib).returns(T::Boolean)).returns(T::Array[Squib]) }
903
903
  def select(&block); end
904
904
 
905
- sig { params(args: T.any(String, Symbol)).returns(Squib::ActiveRecord_AssociationRelation) }
905
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Squib::ActiveRecord_AssociationRelation) }
906
906
  def select_columns(*args); end
907
907
 
908
908
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
@@ -175,7 +175,7 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
175
175
  sig { params(block: T.proc.params(e: Subject::HABTM_Wizards).returns(T::Boolean)).returns(T::Array[Subject::HABTM_Wizards]) }
176
176
  def select(&block); end
177
177
 
178
- sig { params(args: T.any(String, Symbol)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
178
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
179
179
  def select_columns(*args); end
180
180
 
181
181
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
@@ -279,7 +279,7 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
279
279
  sig { params(block: T.proc.params(e: Subject::HABTM_Wizards).returns(T::Boolean)).returns(T::Array[Subject::HABTM_Wizards]) }
280
280
  def select(&block); end
281
281
 
282
- sig { params(args: T.any(String, Symbol)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
282
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
283
283
  def select_columns(*args); end
284
284
 
285
285
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
@@ -148,7 +148,7 @@ module Subject::QueryMethodsReturningRelation
148
148
  sig { params(block: T.proc.params(e: Subject).returns(T::Boolean)).returns(T::Array[Subject]) }
149
149
  def select(&block); end
150
150
 
151
- sig { params(args: T.any(String, Symbol)).returns(Subject::ActiveRecord_Relation) }
151
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::ActiveRecord_Relation) }
152
152
  def select_columns(*args); end
153
153
 
154
154
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_Relation) }
@@ -252,7 +252,7 @@ module Subject::QueryMethodsReturningAssociationRelation
252
252
  sig { params(block: T.proc.params(e: Subject).returns(T::Boolean)).returns(T::Array[Subject]) }
253
253
  def select(&block); end
254
254
 
255
- sig { params(args: T.any(String, Symbol)).returns(Subject::ActiveRecord_AssociationRelation) }
255
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Subject::ActiveRecord_AssociationRelation) }
256
256
  def select_columns(*args); end
257
257
 
258
258
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_AssociationRelation) }
@@ -403,7 +403,7 @@ module Wand::QueryMethodsReturningRelation
403
403
  sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
404
404
  def select(&block); end
405
405
 
406
- sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_Relation) }
406
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wand::ActiveRecord_Relation) }
407
407
  def select_columns(*args); end
408
408
 
409
409
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
@@ -507,7 +507,7 @@ module Wand::QueryMethodsReturningAssociationRelation
507
507
  sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
508
508
  def select(&block); end
509
509
 
510
- sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_AssociationRelation) }
510
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wand::ActiveRecord_AssociationRelation) }
511
511
  def select_columns(*args); end
512
512
 
513
513
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
@@ -175,7 +175,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
175
175
  sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
176
176
  def select(&block); end
177
177
 
178
- sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
178
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
179
179
  def select_columns(*args); end
180
180
 
181
181
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
@@ -279,7 +279,7 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
279
279
  sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
280
280
  def select(&block); end
281
281
 
282
- sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
282
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
283
283
  def select_columns(*args); end
284
284
 
285
285
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
@@ -874,7 +874,7 @@ module Wizard::QueryMethodsReturningRelation
874
874
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
875
875
  def select(&block); end
876
876
 
877
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
877
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_Relation) }
878
878
  def select_columns(*args); end
879
879
 
880
880
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
@@ -978,7 +978,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
978
978
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
979
979
  def select(&block); end
980
980
 
981
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
981
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
982
982
  def select_columns(*args); end
983
983
 
984
984
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
@@ -868,7 +868,7 @@ module Wizard::QueryMethodsReturningRelation
868
868
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
869
869
  def select(&block); end
870
870
 
871
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
871
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_Relation) }
872
872
  def select_columns(*args); end
873
873
 
874
874
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
@@ -972,7 +972,7 @@ module Wizard::QueryMethodsReturningAssociationRelation
972
972
  sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
973
973
  def select(&block); end
974
974
 
975
- sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
975
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Wizard::ActiveRecord_AssociationRelation) }
976
976
  def select_columns(*args); end
977
977
 
978
978
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
@@ -96,16 +96,16 @@ class ActiveRecord::Base
96
96
  end
97
97
  def self.find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
98
98
 
99
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
99
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
100
100
  def self.any?(&block); end
101
101
 
102
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
102
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
103
103
  def self.many?(&block); end
104
104
 
105
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
105
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
106
106
  def self.none?(&block); end
107
107
 
108
- sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
108
+ sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
109
109
  def self.one?(&block); end
110
110
 
111
111
  sig { params(conditions: T.untyped).returns(T::Boolean) }
@@ -101,16 +101,16 @@ class ActiveRecord::Relation
101
101
  end
102
102
  def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
103
103
 
104
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
104
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
105
105
  def any?(&block); end
106
106
 
107
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
107
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
108
108
  def many?(&block); end
109
109
 
110
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
110
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
111
111
  def none?(&block); end
112
112
 
113
- sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
113
+ sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
114
114
  def one?(&block); end
115
115
 
116
116
  sig { params(conditions: T.untyped).returns(T::Boolean) }
@@ -166,7 +166,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
166
166
  sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
167
167
  def select(&block); end
168
168
 
169
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
169
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
170
170
  def select_columns(*args); end
171
171
 
172
172
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
@@ -282,7 +282,7 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
282
282
  sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
283
283
  def select(&block); end
284
284
 
285
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
285
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
286
286
  def select_columns(*args); end
287
287
 
288
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
@@ -184,7 +184,7 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
184
184
  sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
185
185
  def select(&block); end
186
186
 
187
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
187
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
188
188
  def select_columns(*args); end
189
189
 
190
190
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
@@ -300,7 +300,7 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
300
300
  sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
301
301
  def select(&block); end
302
302
 
303
- sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
303
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
304
304
  def select_columns(*args); end
305
305
 
306
306
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
@@ -196,7 +196,7 @@ module Headmaster::QueryMethodsReturningRelation
196
196
  sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
197
197
  def select(&block); end
198
198
 
199
- sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_Relation) }
199
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_Relation) }
200
200
  def select_columns(*args); end
201
201
 
202
202
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
@@ -312,7 +312,7 @@ module Headmaster::QueryMethodsReturningAssociationRelation
312
312
  sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
313
313
  def select(&block); end
314
314
 
315
- sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_AssociationRelation) }
315
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_AssociationRelation) }
316
316
  def select_columns(*args); end
317
317
 
318
318
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
@@ -166,7 +166,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
166
166
  sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
167
167
  def select(&block); end
168
168
 
169
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
169
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
170
170
  def select_columns(*args); end
171
171
 
172
172
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
@@ -282,7 +282,7 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
282
282
  sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
283
283
  def select(&block); end
284
284
 
285
- sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
285
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
286
286
  def select_columns(*args); end
287
287
 
288
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
@@ -148,7 +148,7 @@ module Potion::QueryMethodsReturningRelation
148
148
  sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
149
149
  def select(&block); end
150
150
 
151
- sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_Relation) }
151
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_Relation) }
152
152
  def select_columns(*args); end
153
153
 
154
154
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
@@ -264,7 +264,7 @@ module Potion::QueryMethodsReturningAssociationRelation
264
264
  sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
265
265
  def select(&block); end
266
266
 
267
- sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_AssociationRelation) }
267
+ sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_AssociationRelation) }
268
268
  def select_columns(*args); end
269
269
 
270
270
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_AssociationRelation) }