rbi 0.3.9 → 0.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/rbi/rbi.rbi CHANGED
@@ -30,9 +30,9 @@ class RBI::Attr < ::RBI::NodeWithComments
30
30
  name: ::Symbol,
31
31
  names: T::Array[::Symbol],
32
32
  visibility: ::RBI::Visibility,
33
- sigs: T::Array[::RBI::Sig],
33
+ sigs: T.nilable(T::Array[::RBI::Sig]),
34
34
  loc: T.nilable(::RBI::Loc),
35
- comments: T::Array[::RBI::Comment]
35
+ comments: T.nilable(T::Array[::RBI::Comment])
36
36
  ).void
37
37
  end
38
38
  def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -58,6 +58,12 @@ class RBI::Attr < ::RBI::NodeWithComments
58
58
  sig { returns(T::Array[::RBI::Sig]) }
59
59
  def sigs; end
60
60
 
61
+ sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) }
62
+ def sigs=(sigs); end
63
+
64
+ sig { returns(T::Boolean) }
65
+ def sigs?; end
66
+
61
67
  sig { returns(::RBI::Visibility) }
62
68
  def visibility; end
63
69
 
@@ -98,9 +104,9 @@ class RBI::AttrAccessor < ::RBI::Attr
98
104
  name: ::Symbol,
99
105
  names: ::Symbol,
100
106
  visibility: ::RBI::Visibility,
101
- sigs: T::Array[::RBI::Sig],
107
+ sigs: T.nilable(T::Array[::RBI::Sig]),
102
108
  loc: T.nilable(::RBI::Loc),
103
- comments: T::Array[::RBI::Comment],
109
+ comments: T.nilable(T::Array[::RBI::Comment]),
104
110
  block: T.nilable(T.proc.params(node: ::RBI::AttrAccessor).void)
105
111
  ).void
106
112
  end
@@ -125,9 +131,9 @@ class RBI::AttrReader < ::RBI::Attr
125
131
  name: ::Symbol,
126
132
  names: ::Symbol,
127
133
  visibility: ::RBI::Visibility,
128
- sigs: T::Array[::RBI::Sig],
134
+ sigs: T.nilable(T::Array[::RBI::Sig]),
129
135
  loc: T.nilable(::RBI::Loc),
130
- comments: T::Array[::RBI::Comment],
136
+ comments: T.nilable(T::Array[::RBI::Comment]),
131
137
  block: T.nilable(T.proc.params(node: ::RBI::AttrReader).void)
132
138
  ).void
133
139
  end
@@ -152,9 +158,9 @@ class RBI::AttrWriter < ::RBI::Attr
152
158
  name: ::Symbol,
153
159
  names: ::Symbol,
154
160
  visibility: ::RBI::Visibility,
155
- sigs: T::Array[::RBI::Sig],
161
+ sigs: T.nilable(T::Array[::RBI::Sig]),
156
162
  loc: T.nilable(::RBI::Loc),
157
- comments: T::Array[::RBI::Comment],
163
+ comments: T.nilable(T::Array[::RBI::Comment]),
158
164
  block: T.nilable(T.proc.params(node: ::RBI::AttrWriter).void)
159
165
  ).void
160
166
  end
@@ -183,15 +189,12 @@ class RBI::BlockParam < ::RBI::Param
183
189
  params(
184
190
  name: ::String,
185
191
  loc: T.nilable(::RBI::Loc),
186
- comments: T::Array[::RBI::Comment],
192
+ comments: T.nilable(T::Array[::RBI::Comment]),
187
193
  block: T.nilable(T.proc.params(node: ::RBI::BlockParam).void)
188
194
  ).void
189
195
  end
190
196
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
191
197
 
192
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
193
- def ==(other); end
194
-
195
198
  sig { override.returns(::String) }
196
199
  def to_s; end
197
200
  end
@@ -202,7 +205,7 @@ class RBI::Class < ::RBI::Scope
202
205
  name: ::String,
203
206
  superclass_name: T.nilable(::String),
204
207
  loc: T.nilable(::RBI::Loc),
205
- comments: T::Array[::RBI::Comment],
208
+ comments: T.nilable(T::Array[::RBI::Comment]),
206
209
  block: T.nilable(T.proc.params(node: ::RBI::Class).void)
207
210
  ).void
208
211
  end
@@ -260,7 +263,7 @@ class RBI::Const < ::RBI::NodeWithComments
260
263
  name: ::String,
261
264
  value: ::String,
262
265
  loc: T.nilable(::RBI::Loc),
263
- comments: T::Array[::RBI::Comment],
266
+ comments: T.nilable(T::Array[::RBI::Comment]),
264
267
  block: T.nilable(T.proc.params(node: ::RBI::Const).void)
265
268
  ).void
266
269
  end
@@ -295,7 +298,7 @@ class RBI::Extend < ::RBI::Mixin
295
298
  name: ::String,
296
299
  names: ::String,
297
300
  loc: T.nilable(::RBI::Loc),
298
- comments: T::Array[::RBI::Comment],
301
+ comments: T.nilable(T::Array[::RBI::Comment]),
299
302
  block: T.nilable(T.proc.params(node: ::RBI::Extend).void)
300
303
  ).void
301
304
  end
@@ -315,7 +318,7 @@ class RBI::File
315
318
  sig do
316
319
  params(
317
320
  strictness: T.nilable(::String),
318
- comments: T::Array[::RBI::Comment],
321
+ comments: T.nilable(T::Array[::RBI::Comment]),
319
322
  block: T.nilable(T.proc.params(file: ::RBI::File).void)
320
323
  ).void
321
324
  end
@@ -327,7 +330,11 @@ class RBI::File
327
330
  sig { returns(T::Array[::RBI::Comment]) }
328
331
  def comments; end
329
332
 
330
- def comments=(_arg0); end
333
+ sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) }
334
+ def comments=(comments); end
335
+
336
+ sig { returns(T::Boolean) }
337
+ def comments?; end
331
338
 
332
339
  sig { returns(T::Boolean) }
333
340
  def empty?; end
@@ -429,7 +436,7 @@ class RBI::Helper < ::RBI::NodeWithComments
429
436
  params(
430
437
  name: ::String,
431
438
  loc: T.nilable(::RBI::Loc),
432
- comments: T::Array[::RBI::Comment],
439
+ comments: T.nilable(T::Array[::RBI::Comment]),
433
440
  block: T.nilable(T.proc.params(node: ::RBI::Helper).void)
434
441
  ).void
435
442
  end
@@ -456,7 +463,7 @@ class RBI::Include < ::RBI::Mixin
456
463
  name: ::String,
457
464
  names: ::String,
458
465
  loc: T.nilable(::RBI::Loc),
459
- comments: T::Array[::RBI::Comment],
466
+ comments: T.nilable(T::Array[::RBI::Comment]),
460
467
  block: T.nilable(T.proc.params(node: ::RBI::Include).void)
461
468
  ).void
462
469
  end
@@ -526,15 +533,12 @@ class RBI::KwOptParam < ::RBI::Param
526
533
  name: ::String,
527
534
  value: ::String,
528
535
  loc: T.nilable(::RBI::Loc),
529
- comments: T::Array[::RBI::Comment],
536
+ comments: T.nilable(T::Array[::RBI::Comment]),
530
537
  block: T.nilable(T.proc.params(node: ::RBI::KwOptParam).void)
531
538
  ).void
532
539
  end
533
540
  def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
534
541
 
535
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
536
- def ==(other); end
537
-
538
542
  sig { override.returns(::String) }
539
543
  def to_s; end
540
544
 
@@ -547,15 +551,12 @@ class RBI::KwParam < ::RBI::Param
547
551
  params(
548
552
  name: ::String,
549
553
  loc: T.nilable(::RBI::Loc),
550
- comments: T::Array[::RBI::Comment],
554
+ comments: T.nilable(T::Array[::RBI::Comment]),
551
555
  block: T.nilable(T.proc.params(node: ::RBI::KwParam).void)
552
556
  ).void
553
557
  end
554
558
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
555
559
 
556
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
557
- def ==(other); end
558
-
559
560
  sig { override.returns(::String) }
560
561
  def to_s; end
561
562
  end
@@ -565,15 +566,12 @@ class RBI::KwRestParam < ::RBI::Param
565
566
  params(
566
567
  name: ::String,
567
568
  loc: T.nilable(::RBI::Loc),
568
- comments: T::Array[::RBI::Comment],
569
+ comments: T.nilable(T::Array[::RBI::Comment]),
569
570
  block: T.nilable(T.proc.params(node: ::RBI::KwRestParam).void)
570
571
  ).void
571
572
  end
572
573
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
573
574
 
574
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
575
- def ==(other); end
576
-
577
575
  sig { override.returns(::String) }
578
576
  def to_s; end
579
577
  end
@@ -637,12 +635,12 @@ class RBI::Method < ::RBI::NodeWithComments
637
635
  sig do
638
636
  params(
639
637
  name: ::String,
640
- params: T::Array[::RBI::Param],
638
+ params: T.nilable(T::Array[::RBI::Param]),
641
639
  is_singleton: T::Boolean,
642
640
  visibility: ::RBI::Visibility,
643
- sigs: T::Array[::RBI::Sig],
641
+ sigs: T.nilable(T::Array[::RBI::Sig]),
644
642
  loc: T.nilable(::RBI::Loc),
645
- comments: T::Array[::RBI::Comment],
643
+ comments: T.nilable(T::Array[::RBI::Comment]),
646
644
  block: T.nilable(T.proc.params(node: ::RBI::Method).void)
647
645
  ).void
648
646
  end
@@ -674,13 +672,13 @@ class RBI::Method < ::RBI::NodeWithComments
674
672
 
675
673
  sig do
676
674
  params(
677
- params: T::Array[::RBI::SigParam],
675
+ params: T.nilable(T::Array[::RBI::SigParam]),
678
676
  return_type: T.any(::RBI::Type, ::String),
679
677
  is_abstract: T::Boolean,
680
678
  is_override: T::Boolean,
681
679
  is_overridable: T::Boolean,
682
680
  is_final: T::Boolean,
683
- type_params: T::Array[::String],
681
+ type_params: T.nilable(T::Array[::String]),
684
682
  checked: T.nilable(::Symbol),
685
683
  block: T.nilable(T.proc.params(node: ::RBI::Sig).void)
686
684
  ).void
@@ -715,7 +713,11 @@ class RBI::Method < ::RBI::NodeWithComments
715
713
  sig { returns(T::Array[::RBI::Sig]) }
716
714
  def sigs; end
717
715
 
718
- def sigs=(_arg0); end
716
+ sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) }
717
+ def sigs=(sigs); end
718
+
719
+ sig { returns(T::Boolean) }
720
+ def sigs?; end
719
721
 
720
722
  sig { override.returns(::String) }
721
723
  def to_s; end
@@ -724,6 +726,11 @@ class RBI::Method < ::RBI::NodeWithComments
724
726
  def visibility; end
725
727
 
726
728
  def visibility=(_arg0); end
729
+
730
+ private
731
+
732
+ sig { params(other: ::RBI::Method).returns(T::Boolean) }
733
+ def at_most_one_side_anonymous?(other); end
727
734
  end
728
735
 
729
736
  class RBI::MixesInClassMethods < ::RBI::Mixin
@@ -734,7 +741,7 @@ class RBI::MixesInClassMethods < ::RBI::Mixin
734
741
  name: ::String,
735
742
  names: ::String,
736
743
  loc: T.nilable(::RBI::Loc),
737
- comments: T::Array[::RBI::Comment],
744
+ comments: T.nilable(T::Array[::RBI::Comment]),
738
745
  block: T.nilable(T.proc.params(node: ::RBI::MixesInClassMethods).void)
739
746
  ).void
740
747
  end
@@ -758,7 +765,7 @@ class RBI::Mixin < ::RBI::NodeWithComments
758
765
  name: ::String,
759
766
  names: T::Array[::String],
760
767
  loc: T.nilable(::RBI::Loc),
761
- comments: T::Array[::RBI::Comment]
768
+ comments: T.nilable(T::Array[::RBI::Comment])
762
769
  ).void
763
770
  end
764
771
  def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -775,7 +782,7 @@ class RBI::Module < ::RBI::Scope
775
782
  params(
776
783
  name: ::String,
777
784
  loc: T.nilable(::RBI::Loc),
778
- comments: T::Array[::RBI::Comment],
785
+ comments: T.nilable(T::Array[::RBI::Comment]),
779
786
  block: T.nilable(T.proc.params(node: ::RBI::Module).void)
780
787
  ).void
781
788
  end
@@ -860,7 +867,7 @@ end
860
867
  class RBI::NodeWithComments < ::RBI::Node
861
868
  abstract!
862
869
 
863
- sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
870
+ sig { params(loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
864
871
  def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end
865
872
 
866
873
  sig { returns(T::Array[::String]) }
@@ -869,7 +876,11 @@ class RBI::NodeWithComments < ::RBI::Node
869
876
  sig { returns(T::Array[::RBI::Comment]) }
870
877
  def comments; end
871
878
 
872
- def comments=(_arg0); end
879
+ sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) }
880
+ def comments=(comments); end
881
+
882
+ sig { returns(T::Boolean) }
883
+ def comments?; end
873
884
 
874
885
  sig { override.params(other: ::RBI::Node).void }
875
886
  def merge_with(other); end
@@ -884,15 +895,12 @@ class RBI::OptParam < ::RBI::Param
884
895
  name: ::String,
885
896
  value: ::String,
886
897
  loc: T.nilable(::RBI::Loc),
887
- comments: T::Array[::RBI::Comment],
898
+ comments: T.nilable(T::Array[::RBI::Comment]),
888
899
  block: T.nilable(T.proc.params(node: ::RBI::OptParam).void)
889
900
  ).void
890
901
  end
891
902
  def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
892
903
 
893
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
894
- def ==(other); end
895
-
896
904
  sig { returns(::String) }
897
905
  def value; end
898
906
  end
@@ -900,9 +908,15 @@ end
900
908
  class RBI::Param < ::RBI::NodeWithComments
901
909
  abstract!
902
910
 
903
- sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
911
+ sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
904
912
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
905
913
 
914
+ sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
915
+ def ==(other); end
916
+
917
+ sig { returns(T::Boolean) }
918
+ def anonymous?; end
919
+
906
920
  sig { returns(::String) }
907
921
  def name; end
908
922
 
@@ -1104,7 +1118,7 @@ end
1104
1118
  class RBI::Printer < ::RBI::Visitor
1105
1119
  sig do
1106
1120
  params(
1107
- out: T.any(::IO, ::StringIO),
1121
+ out: T.any(::IO, ::String, ::StringIO),
1108
1122
  indent: ::Integer,
1109
1123
  print_locs: T::Boolean,
1110
1124
  max_line_length: T.nilable(::Integer)
@@ -1115,6 +1129,9 @@ class RBI::Printer < ::RBI::Visitor
1115
1129
  sig { returns(::Integer) }
1116
1130
  def current_indent; end
1117
1131
 
1132
+ sig { returns(::String) }
1133
+ def current_indent_string; end
1134
+
1118
1135
  sig { void }
1119
1136
  def dedent; end
1120
1137
 
@@ -1333,13 +1350,16 @@ class RBI::Printer < ::RBI::Visitor
1333
1350
  def visit_visibility_group(node); end
1334
1351
  end
1335
1352
 
1353
+ RBI::Printer::EMPTY_MODIFIERS = T.let(T.unsafe(nil), Array)
1354
+ RBI::Printer::INDENT_CACHE = T.let(T.unsafe(nil), Array)
1355
+ RBI::Printer::MAX_CACHED_INDENT = T.let(T.unsafe(nil), Integer)
1336
1356
  class RBI::PrinterError < ::RBI::Error; end
1337
1357
 
1338
1358
  class RBI::Private < ::RBI::Visibility
1339
1359
  sig do
1340
1360
  params(
1341
1361
  loc: T.nilable(::RBI::Loc),
1342
- comments: T::Array[::RBI::Comment],
1362
+ comments: T.nilable(T::Array[::RBI::Comment]),
1343
1363
  block: T.nilable(T.proc.params(node: ::RBI::Private).void)
1344
1364
  ).void
1345
1365
  end
@@ -1350,7 +1370,7 @@ class RBI::Protected < ::RBI::Visibility
1350
1370
  sig do
1351
1371
  params(
1352
1372
  loc: T.nilable(::RBI::Loc),
1353
- comments: T::Array[::RBI::Comment],
1373
+ comments: T.nilable(T::Array[::RBI::Comment]),
1354
1374
  block: T.nilable(T.proc.params(node: ::RBI::Protected).void)
1355
1375
  ).void
1356
1376
  end
@@ -1361,13 +1381,14 @@ class RBI::Public < ::RBI::Visibility
1361
1381
  sig do
1362
1382
  params(
1363
1383
  loc: T.nilable(::RBI::Loc),
1364
- comments: T::Array[::RBI::Comment],
1384
+ comments: T.nilable(T::Array[::RBI::Comment]),
1365
1385
  block: T.nilable(T.proc.params(node: ::RBI::Public).void)
1366
1386
  ).void
1367
1387
  end
1368
1388
  def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1369
1389
  end
1370
1390
 
1391
+ RBI::Public::DEFAULT = T.let(T.unsafe(nil), RBI::Public)
1371
1392
  module RBI::RBS; end
1372
1393
 
1373
1394
  class RBI::RBS::MethodTypeTranslator
@@ -1684,20 +1705,17 @@ class RBI::ReqParam < ::RBI::Param
1684
1705
  params(
1685
1706
  name: ::String,
1686
1707
  loc: T.nilable(::RBI::Loc),
1687
- comments: T::Array[::RBI::Comment],
1708
+ comments: T.nilable(T::Array[::RBI::Comment]),
1688
1709
  block: T.nilable(T.proc.params(node: ::RBI::ReqParam).void)
1689
1710
  ).void
1690
1711
  end
1691
1712
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1692
-
1693
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
1694
- def ==(other); end
1695
1713
  end
1696
1714
 
1697
1715
  class RBI::RequiresAncestor < ::RBI::NodeWithComments
1698
1716
  include ::RBI::Indexable
1699
1717
 
1700
- sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
1718
+ sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
1701
1719
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
1702
1720
 
1703
1721
  sig { override.returns(T::Array[::String]) }
@@ -1715,15 +1733,12 @@ class RBI::RestParam < ::RBI::Param
1715
1733
  params(
1716
1734
  name: ::String,
1717
1735
  loc: T.nilable(::RBI::Loc),
1718
- comments: T::Array[::RBI::Comment],
1736
+ comments: T.nilable(T::Array[::RBI::Comment]),
1719
1737
  block: T.nilable(T.proc.params(node: ::RBI::RestParam).void)
1720
1738
  ).void
1721
1739
  end
1722
1740
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1723
1741
 
1724
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
1725
- def ==(other); end
1726
-
1727
1742
  sig { override.returns(::String) }
1728
1743
  def to_s; end
1729
1744
  end
@@ -2070,7 +2085,7 @@ class RBI::Send < ::RBI::NodeWithComments
2070
2085
  method: ::String,
2071
2086
  args: T::Array[::RBI::Arg],
2072
2087
  loc: T.nilable(::RBI::Loc),
2073
- comments: T::Array[::RBI::Comment],
2088
+ comments: T.nilable(T::Array[::RBI::Comment]),
2074
2089
  block: T.nilable(T.proc.params(node: ::RBI::Send).void)
2075
2090
  ).void
2076
2091
  end
@@ -2101,7 +2116,7 @@ end
2101
2116
  class RBI::Sig < ::RBI::NodeWithComments
2102
2117
  sig do
2103
2118
  params(
2104
- params: T::Array[::RBI::SigParam],
2119
+ params: T.nilable(T::Array[::RBI::SigParam]),
2105
2120
  return_type: T.any(::RBI::Type, ::String),
2106
2121
  is_abstract: T::Boolean,
2107
2122
  is_override: T::Boolean,
@@ -2110,10 +2125,10 @@ class RBI::Sig < ::RBI::NodeWithComments
2110
2125
  allow_incompatible_override: T::Boolean,
2111
2126
  allow_incompatible_override_visibility: T::Boolean,
2112
2127
  without_runtime: T::Boolean,
2113
- type_params: T::Array[::String],
2128
+ type_params: T.nilable(T::Array[::String]),
2114
2129
  checked: T.nilable(::Symbol),
2115
2130
  loc: T.nilable(::RBI::Loc),
2116
- comments: T::Array[::RBI::Comment],
2131
+ comments: T.nilable(T::Array[::RBI::Comment]),
2117
2132
  block: T.nilable(T.proc.params(node: ::RBI::Sig).void)
2118
2133
  ).void
2119
2134
  end
@@ -2174,6 +2189,9 @@ class RBI::Sig < ::RBI::NodeWithComments
2174
2189
  sig { returns(T::Array[::String]) }
2175
2190
  def type_params; end
2176
2191
 
2192
+ sig { returns(T::Boolean) }
2193
+ def type_params?; end
2194
+
2177
2195
  sig { returns(T::Boolean) }
2178
2196
  def without_runtime; end
2179
2197
 
@@ -2186,7 +2204,7 @@ class RBI::SigParam < ::RBI::NodeWithComments
2186
2204
  name: ::String,
2187
2205
  type: T.any(::RBI::Type, ::String),
2188
2206
  loc: T.nilable(::RBI::Loc),
2189
- comments: T::Array[::RBI::Comment],
2207
+ comments: T.nilable(T::Array[::RBI::Comment]),
2190
2208
  block: T.nilable(T.proc.params(node: ::RBI::SigParam).void)
2191
2209
  ).void
2192
2210
  end
@@ -2195,6 +2213,9 @@ class RBI::SigParam < ::RBI::NodeWithComments
2195
2213
  sig { params(other: ::Object).returns(T::Boolean) }
2196
2214
  def ==(other); end
2197
2215
 
2216
+ sig { returns(T::Boolean) }
2217
+ def anonymous?; end
2218
+
2198
2219
  sig { returns(::String) }
2199
2220
  def name; end
2200
2221
 
@@ -2206,7 +2227,7 @@ class RBI::SingletonClass < ::RBI::Scope
2206
2227
  sig do
2207
2228
  params(
2208
2229
  loc: T.nilable(::RBI::Loc),
2209
- comments: T::Array[::RBI::Comment],
2230
+ comments: T.nilable(T::Array[::RBI::Comment]),
2210
2231
  block: T.nilable(T.proc.params(node: ::RBI::SingletonClass).void)
2211
2232
  ).void
2212
2233
  end
@@ -2223,7 +2244,7 @@ class RBI::Struct < ::RBI::Scope
2223
2244
  members: T::Array[::Symbol],
2224
2245
  keyword_init: T::Boolean,
2225
2246
  loc: T.nilable(::RBI::Loc),
2226
- comments: T::Array[::RBI::Comment],
2247
+ comments: T.nilable(T::Array[::RBI::Comment]),
2227
2248
  block: T.nilable(T.proc.params(struct: ::RBI::Struct).void)
2228
2249
  ).void
2229
2250
  end
@@ -2256,7 +2277,7 @@ class RBI::TEnum < ::RBI::Class
2256
2277
  params(
2257
2278
  name: ::String,
2258
2279
  loc: T.nilable(::RBI::Loc),
2259
- comments: T::Array[::RBI::Comment],
2280
+ comments: T.nilable(T::Array[::RBI::Comment]),
2260
2281
  block: T.nilable(T.proc.params(klass: ::RBI::TEnum).void)
2261
2282
  ).void
2262
2283
  end
@@ -2267,7 +2288,7 @@ class RBI::TEnumBlock < ::RBI::Scope
2267
2288
  sig do
2268
2289
  params(
2269
2290
  loc: T.nilable(::RBI::Loc),
2270
- comments: T::Array[::RBI::Comment],
2291
+ comments: T.nilable(T::Array[::RBI::Comment]),
2271
2292
  block: T.nilable(T.proc.params(node: ::RBI::TEnumBlock).void)
2272
2293
  ).void
2273
2294
  end
@@ -2290,7 +2311,7 @@ class RBI::TEnumValue < ::RBI::NodeWithComments
2290
2311
  params(
2291
2312
  name: ::String,
2292
2313
  loc: T.nilable(::RBI::Loc),
2293
- comments: T::Array[::RBI::Comment],
2314
+ comments: T.nilable(T::Array[::RBI::Comment]),
2294
2315
  block: T.nilable(T.proc.params(node: ::RBI::TEnumValue).void)
2295
2316
  ).void
2296
2317
  end
@@ -2314,7 +2335,7 @@ class RBI::TStruct < ::RBI::Class
2314
2335
  params(
2315
2336
  name: ::String,
2316
2337
  loc: T.nilable(::RBI::Loc),
2317
- comments: T::Array[::RBI::Comment],
2338
+ comments: T.nilable(T::Array[::RBI::Comment]),
2318
2339
  block: T.nilable(T.proc.params(klass: ::RBI::TStruct).void)
2319
2340
  ).void
2320
2341
  end
@@ -2330,7 +2351,7 @@ class RBI::TStructConst < ::RBI::TStructField
2330
2351
  type: T.any(::RBI::Type, ::String),
2331
2352
  default: T.nilable(::String),
2332
2353
  loc: T.nilable(::RBI::Loc),
2333
- comments: T::Array[::RBI::Comment],
2354
+ comments: T.nilable(T::Array[::RBI::Comment]),
2334
2355
  block: T.nilable(T.proc.params(node: ::RBI::TStructConst).void)
2335
2356
  ).void
2336
2357
  end
@@ -2358,7 +2379,7 @@ class RBI::TStructField < ::RBI::NodeWithComments
2358
2379
  type: T.any(::RBI::Type, ::String),
2359
2380
  default: T.nilable(::String),
2360
2381
  loc: T.nilable(::RBI::Loc),
2361
- comments: T::Array[::RBI::Comment]
2382
+ comments: T.nilable(T::Array[::RBI::Comment])
2362
2383
  ).void
2363
2384
  end
2364
2385
  def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -2394,7 +2415,7 @@ class RBI::TStructProp < ::RBI::TStructField
2394
2415
  type: T.any(::RBI::Type, ::String),
2395
2416
  default: T.nilable(::String),
2396
2417
  loc: T.nilable(::RBI::Loc),
2397
- comments: T::Array[::RBI::Comment],
2418
+ comments: T.nilable(T::Array[::RBI::Comment]),
2398
2419
  block: T.nilable(T.proc.params(node: ::RBI::TStructProp).void)
2399
2420
  ).void
2400
2421
  end
@@ -2417,7 +2438,7 @@ class RBI::Tree < ::RBI::NodeWithComments
2417
2438
  sig do
2418
2439
  params(
2419
2440
  loc: T.nilable(::RBI::Loc),
2420
- comments: T::Array[::RBI::Comment],
2441
+ comments: T.nilable(T::Array[::RBI::Comment]),
2421
2442
  block: T.nilable(T.proc.params(node: ::RBI::Tree).void)
2422
2443
  ).void
2423
2444
  end
@@ -3105,7 +3126,7 @@ class RBI::TypeMember < ::RBI::NodeWithComments
3105
3126
  name: ::String,
3106
3127
  value: ::String,
3107
3128
  loc: T.nilable(::RBI::Loc),
3108
- comments: T::Array[::RBI::Comment],
3129
+ comments: T.nilable(T::Array[::RBI::Comment]),
3109
3130
  block: T.nilable(T.proc.params(node: ::RBI::TypeMember).void)
3110
3131
  ).void
3111
3132
  end
@@ -3223,7 +3244,7 @@ RBI::VERSION = T.let(T.unsafe(nil), String)
3223
3244
  class RBI::Visibility < ::RBI::NodeWithComments
3224
3245
  abstract!
3225
3246
 
3226
- sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
3247
+ sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
3227
3248
  def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
3228
3249
 
3229
3250
  sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Terrasa
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-01-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: prism
@@ -30,15 +29,14 @@ dependencies:
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: 3.4.4
32
+ version: 4.0.1
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: 3.4.4
41
- description:
39
+ version: 4.0.1
42
40
  email:
43
41
  - ruby@shopify.com
44
42
  executables: []
@@ -84,7 +82,6 @@ licenses:
84
82
  - MIT
85
83
  metadata:
86
84
  allowed_push_host: https://rubygems.org
87
- post_install_message:
88
85
  rdoc_options: []
89
86
  require_paths:
90
87
  - lib
@@ -92,15 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
89
  requirements:
93
90
  - - ">="
94
91
  - !ruby/object:Gem::Version
95
- version: '3.1'
92
+ version: '3.2'
96
93
  required_rubygems_version: !ruby/object:Gem::Requirement
97
94
  requirements:
98
95
  - - ">="
99
96
  - !ruby/object:Gem::Version
100
97
  version: '0'
101
98
  requirements: []
102
- rubygems_version: 3.5.3
103
- signing_key:
99
+ rubygems_version: 3.6.9
104
100
  specification_version: 4
105
101
  summary: RBI generation framework
106
102
  test_files: []