-
Notifications
You must be signed in to change notification settings - Fork 510
/
sorbet_ruby_2_6_hidden.rbi.exp
2969 lines (1850 loc) · 52.7 KB
/
sorbet_ruby_2_6_hidden.rbi.exp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# srb rbi hidden-definitions
# typed: autogenerated
class Array
include ::JSON::Ext::Generator::GeneratorMethods::Array
def shelljoin(); end
def to_h(); end
end
class Array
def self.try_convert(arg); end
end
BasicObject::BasicObject = BasicObject
class BigDecimal
def clone(); end
EXCEPTION_NaN = ::T.let(nil, ::T.untyped)
VERSION = ::T.let(nil, ::T.untyped)
end
class BigDecimal
def self.new(*args, **kwargs); end
end
class Binding
def clone(); end
def irb(); end
end
class Bundler::Dependency
def branch(); end
def expanded_platforms(); end
def git(); end
end
Bundler::Deprecate = Gem::Deprecate
class Bundler::Env
end
class Bundler::Env
def self.environment(); end
def self.report(options=T.unsafe(nil)); end
def self.write(io); end
end
class Bundler::Fetcher
def fetch_spec(spec); end
def fetchers(); end
def http_proxy(); end
def initialize(remote); end
def specs(gem_names, source); end
def specs_with_retry(gem_names, source); end
def uri(); end
def use_api(); end
def user_agent(); end
FAIL_ERRORS = ::T.let(nil, ::T.untyped)
FETCHERS = ::T.let(nil, ::T.untyped)
HTTP_ERRORS = ::T.let(nil, ::T.untyped)
NET_ERRORS = ::T.let(nil, ::T.untyped)
end
class Bundler::Fetcher::AuthenticationRequiredError
def initialize(remote_uri); end
end
class Bundler::Fetcher::BadAuthenticationError
def initialize(remote_uri); end
end
class Bundler::Fetcher::Base
def api_fetcher?(); end
def available?(); end
def display_uri(); end
def downloader(); end
def fetch_uri(); end
def initialize(downloader, remote, display_uri); end
def remote(); end
def remote_uri(); end
end
class Bundler::Fetcher::Base
end
class Bundler::Fetcher::CertificateFailureError
def initialize(remote_uri); end
end
class Bundler::Fetcher::CompactIndex
def available?(*args, &blk); end
def fetch_spec(*args, &blk); end
def specs(*args, &blk); end
def specs_for_names(gem_names); end
end
class Bundler::Fetcher::CompactIndex::ClientFetcher
def call(path, headers); end
def fetcher(); end
def fetcher=(_); end
def ui(); end
def ui=(_); end
end
class Bundler::Fetcher::CompactIndex::ClientFetcher
def self.[](*arg); end
def self.members(); end
end
class Bundler::Fetcher::CompactIndex
def self.compact_index_request(method_name); end
end
class Bundler::Fetcher::Dependency
def dependency_api_uri(gem_names=T.unsafe(nil)); end
def dependency_specs(gem_names); end
def get_formatted_specs_and_deps(gem_list); end
def specs(gem_names, full_dependency_list=T.unsafe(nil), last_spec_list=T.unsafe(nil)); end
def unmarshalled_dep_gems(gem_names); end
end
class Bundler::Fetcher::Dependency
end
class Bundler::Fetcher::Downloader
def connection(); end
def fetch(uri, headers=T.unsafe(nil), counter=T.unsafe(nil)); end
def initialize(connection, redirect_limit); end
def redirect_limit(); end
def request(uri, headers); end
end
class Bundler::Fetcher::Downloader
end
class Bundler::Fetcher::Index
def fetch_spec(spec); end
def specs(_gem_names); end
end
class Bundler::Fetcher::Index
end
class Bundler::Fetcher::SSLError
def initialize(msg=T.unsafe(nil)); end
end
class Bundler::Fetcher::TooManyRequestsError
end
class Bundler::Fetcher::TooManyRequestsError
end
class Bundler::Fetcher
def self.api_timeout(); end
def self.api_timeout=(api_timeout); end
def self.disable_endpoint(); end
def self.disable_endpoint=(disable_endpoint); end
def self.max_retries(); end
def self.max_retries=(max_retries); end
def self.redirect_limit(); end
def self.redirect_limit=(redirect_limit); end
end
module Bundler::FileUtils
VERSION = ::T.let(nil, ::T.untyped)
end
class Bundler::FileUtils::Entry_
def link(dest); end
end
module Bundler::FileUtils
def self.cp_lr(src, dest, noop: T.unsafe(nil), verbose: T.unsafe(nil), dereference_root: T.unsafe(nil), remove_destination: T.unsafe(nil)); end
def self.link_entry(src, dest, dereference_root=T.unsafe(nil), remove_destination=T.unsafe(nil)); end
end
class Bundler::GemHelper
def allowed_push_host(); end
def already_tagged?(); end
def base(); end
def build_gem(); end
def built_gem_path(); end
def clean?(); end
def committed?(); end
def gem_command(); end
def gem_key(); end
def gem_push?(); end
def gem_push_host(); end
def gemspec(); end
def git_push(remote=T.unsafe(nil)); end
def guard_clean(); end
def initialize(base=T.unsafe(nil), name=T.unsafe(nil)); end
def install(); end
def install_gem(built_gem_path=T.unsafe(nil), local=T.unsafe(nil)); end
def name(); end
def perform_git_push(options=T.unsafe(nil)); end
def rubygem_push(path); end
def sh(cmd, &block); end
def sh_with_input(cmd); end
def sh_with_status(cmd, &block); end
def spec_path(); end
def tag_version(); end
def version(); end
def version_tag(); end
end
class Bundler::GemHelper
def self.gemspec(&block); end
def self.install_tasks(opts=T.unsafe(nil)); end
def self.instance(); end
def self.instance=(instance); end
end
class Bundler::GemVersionPromoter
def initialize(locked_specs=T.unsafe(nil), unlock_gems=T.unsafe(nil)); end
def level(); end
def level=(value); end
def locked_specs(); end
def major?(); end
def minor?(); end
def prerelease_specified(); end
def prerelease_specified=(prerelease_specified); end
def sort_versions(dep, spec_groups); end
def strict(); end
def strict=(strict); end
def unlock_gems(); end
DEBUG = ::T.let(nil, ::T.untyped)
end
class Bundler::GemVersionPromoter
end
class Bundler::Graph
def edge_options(); end
def groups(); end
def initialize(env, output_file, show_version=T.unsafe(nil), show_requirements=T.unsafe(nil), output_format=T.unsafe(nil), without=T.unsafe(nil)); end
def node_options(); end
def output_file(); end
def output_format(); end
def relations(); end
def viz(); end
GRAPH_NAME = ::T.let(nil, ::T.untyped)
end
class Bundler::Graph::GraphVizClient
def g(); end
def initialize(graph_instance); end
def run(); end
end
class Bundler::Graph::GraphVizClient
end
class Bundler::Graph
end
class Bundler::Index
include ::Enumerable
end
class Bundler::Injector
def initialize(deps, options=T.unsafe(nil)); end
def inject(gemfile_path, lockfile_path); end
def remove(gemfile_path, lockfile_path); end
INJECTED_GEMS = ::T.let(nil, ::T.untyped)
end
class Bundler::Injector
def self.inject(new_deps, options=T.unsafe(nil)); end
def self.remove(gems, options=T.unsafe(nil)); end
end
class Bundler::Installer
def generate_bundler_executable_stubs(spec, options=T.unsafe(nil)); end
def generate_standalone_bundler_executable_stubs(spec); end
def initialize(root, definition); end
def post_install_messages(); end
def run(options); end
end
class Bundler::Installer
def self.ambiguous_gems(); end
def self.ambiguous_gems=(ambiguous_gems); end
def self.install(root, definition, options=T.unsafe(nil)); end
end
class Bundler::LockfileGenerator
def definition(); end
def generate!(); end
def initialize(definition); end
def out(); end
end
class Bundler::LockfileGenerator
def self.generate(definition); end
end
class Bundler::Molinillo::DependencyGraph
include ::Enumerable
end
class Bundler::Molinillo::DependencyGraph::Log
extend ::Enumerable
end
class Bundler::Molinillo::DependencyGraph::Vertex
def _recursive_predecessors(vertices=T.unsafe(nil)); end
def _recursive_successors(vertices=T.unsafe(nil)); end
end
module Bundler::Plugin::API::Source
def ==(other); end
def app_cache_dirname(); end
def app_cache_path(custom_path=T.unsafe(nil)); end
def bundler_plugin_api_source?(); end
def cache(spec, custom_path=T.unsafe(nil)); end
def cached!(); end
def can_lock?(spec); end
def dependency_names(); end
def dependency_names=(dependency_names); end
def double_check_for(*arg); end
def eql?(other); end
def fetch_gemspec_files(); end
def gem_install_dir(); end
def hash(); end
def include?(other); end
def initialize(opts); end
def install(spec, opts); end
def install_path(); end
def installed?(); end
def name(); end
def options(); end
def options_to_lock(); end
def post_install(spec, disable_exts=T.unsafe(nil)); end
def remote!(); end
def root(); end
def specs(); end
def to_lock(); end
def to_s(); end
def unlock!(); end
def unmet_deps(); end
def uri(); end
def uri_hash(); end
end
module Bundler::Plugin::API::Source
end
module Bundler::Plugin::Events
GEM_AFTER_INSTALL = ::T.let(nil, ::T.untyped)
GEM_AFTER_INSTALL_ALL = ::T.let(nil, ::T.untyped)
GEM_BEFORE_INSTALL = ::T.let(nil, ::T.untyped)
GEM_BEFORE_INSTALL_ALL = ::T.let(nil, ::T.untyped)
end
class Bundler::Plugin::Index
def installed_plugins(); end
def plugin_commands(plugin); end
end
class Bundler::Plugin::Index::CommandConflict
def initialize(plugin, commands); end
end
class Bundler::Plugin::Index::CommandConflict
end
class Bundler::Plugin::Index::SourceConflict
def initialize(plugin, sources); end
end
class Bundler::Plugin::Index::SourceConflict
end
class Bundler::Plugin::Installer
def install(names, options); end
def install_definition(definition); end
end
class Bundler::Plugin::Installer::Git
def generate_bin(spec, disable_extensions=T.unsafe(nil)); end
end
class Bundler::Plugin::Installer::Git
end
class Bundler::Plugin::Installer::Rubygems
end
class Bundler::Plugin::Installer::Rubygems
end
class Bundler::Plugin::Installer
end
class Bundler::Plugin::SourceList
end
class Bundler::Plugin::SourceList
end
module Bundler::Plugin
def self.list(); end
end
class Bundler::ProcessLock
end
class Bundler::ProcessLock
def self.lock(bundle_path=T.unsafe(nil)); end
end
class Bundler::Retry
def attempt(&block); end
def attempts(&block); end
def current_run(); end
def current_run=(current_run); end
def initialize(name, exceptions=T.unsafe(nil), retries=T.unsafe(nil)); end
def name(); end
def name=(name); end
def total_runs(); end
def total_runs=(total_runs); end
end
class Bundler::Retry
def self.attempts(); end
def self.default_attempts(); end
def self.default_retries(); end
end
class Bundler::RubyGemsGemInstaller
end
class Bundler::RubyGemsGemInstaller
end
class Bundler::RubygemsIntegration
def add_to_load_path(paths); end
def all_specs(); end
def backport_ext_builder_monitor(); end
def correct_for_windows_path(path); end
def default_stubs(); end
def find_name(name); end
def gem_remote_fetcher(); end
def plain_specs(); end
def plain_specs=(specs); end
def stub_rubygems(specs); end
def use_gemdeps(gemfile); end
end
class Bundler::Settings::Mirror
def ==(other); end
def fallback_timeout(); end
def fallback_timeout=(timeout); end
def initialize(uri=T.unsafe(nil), fallback_timeout=T.unsafe(nil)); end
def uri(); end
def uri=(uri); end
def valid?(); end
def validate!(probe=T.unsafe(nil)); end
DEFAULT_FALLBACK_TIMEOUT = ::T.let(nil, ::T.untyped)
end
class Bundler::Settings::Mirror
end
class Bundler::Settings::Mirrors
def each(&blk); end
def for(uri); end
def initialize(prober=T.unsafe(nil)); end
def parse(key, value); end
end
class Bundler::Settings::Mirrors
end
class Bundler::Settings::Validator
end
class Bundler::Settings::Validator::Rule
def description(); end
def fail!(key, value, *reasons); end
def initialize(keys, description, &validate); end
def k(key); end
def set(settings, key, value, *reasons); end
def validate!(key, value, settings); end
end
class Bundler::Settings::Validator::Rule
end
class Bundler::Settings::Validator
def self.validate!(key, value, settings); end
end
class Bundler::Source::Git
def glob(); end
end
class Bundler::SpecSet
include ::Enumerable
end
class Bundler::Thor
include ::Bundler::Thor::Base
include ::Bundler::Thor::Invocation
include ::Bundler::Thor::Shell
def help(command=T.unsafe(nil), subcommand=T.unsafe(nil)); end
HELP_MAPPINGS = ::T.let(nil, ::T.untyped)
TEMPLATE_EXTNAME = ::T.let(nil, ::T.untyped)
THOR_RESERVED_WORDS = ::T.let(nil, ::T.untyped)
end
module Bundler::Thor::Actions
def _cleanup_options_and_set(options, key); end
def _shared_configuration(); end
def action(instance); end
def add_file(destination, *args, &block); end
def add_link(destination, *args); end
def append_file(path, *args, &block); end
def append_to_file(path, *args, &block); end
def apply(path, config=T.unsafe(nil)); end
def behavior(); end
def behavior=(behavior); end
def chmod(path, mode, config=T.unsafe(nil)); end
def comment_lines(path, flag, *args); end
def copy_file(source, *args, &block); end
def create_file(destination, *args, &block); end
def create_link(destination, *args); end
def destination_root(); end
def destination_root=(root); end
def directory(source, *args, &block); end
def empty_directory(destination, config=T.unsafe(nil)); end
def find_in_source_paths(file); end
def get(source, *args, &block); end
def gsub_file(path, flag, *args, &block); end
def in_root(); end
def initialize(args=T.unsafe(nil), options=T.unsafe(nil), config=T.unsafe(nil)); end
def inject_into_class(path, klass, *args, &block); end
def inject_into_file(destination, *args, &block); end
def inject_into_module(path, module_name, *args, &block); end
def insert_into_file(destination, *args, &block); end
def inside(dir=T.unsafe(nil), config=T.unsafe(nil), &block); end
def link_file(source, *args); end
def prepend_file(path, *args, &block); end
def prepend_to_file(path, *args, &block); end
def relative_to_original_destination_root(path, remove_dot=T.unsafe(nil)); end
def remove_dir(path, config=T.unsafe(nil)); end
def remove_file(path, config=T.unsafe(nil)); end
def run(command, config=T.unsafe(nil)); end
def run_ruby_script(command, config=T.unsafe(nil)); end
def source_paths(); end
def template(source, *args, &block); end
def thor(command, *args); end
def uncomment_lines(path, flag, *args); end
WARNINGS = ::T.let(nil, ::T.untyped)
end
class Bundler::Thor::Actions::CapturableERB
end
class Bundler::Thor::Actions::CapturableERB
end
module Bundler::Thor::Actions::ClassMethods
def add_runtime_options!(); end
def source_paths(); end
def source_paths_for_search(); end
def source_root(path=T.unsafe(nil)); end
end
module Bundler::Thor::Actions::ClassMethods
end
class Bundler::Thor::Actions::CreateFile
def data(); end
def force_on_collision?(); end
def force_or_skip_or_conflict(force, skip, &block); end
def identical?(); end
def initialize(base, destination, data, config=T.unsafe(nil)); end
def on_conflict_behavior(&block); end
def render(); end
end
class Bundler::Thor::Actions::CreateFile
end
class Bundler::Thor::Actions::CreateLink
end
class Bundler::Thor::Actions::CreateLink
end
class Bundler::Thor::Actions::Directory
def execute!(); end
def file_level_lookup(previous_lookup); end
def files(lookup); end
def initialize(base, source, destination=T.unsafe(nil), config=T.unsafe(nil), &block); end
def source(); end
end
class Bundler::Thor::Actions::Directory
end
class Bundler::Thor::Actions::EmptyDirectory
def base(); end
def config(); end
def convert_encoded_instructions(filename); end
def destination(); end
def destination=(destination); end
def exists?(); end
def given_destination(); end
def initialize(base, destination, config=T.unsafe(nil)); end
def invoke!(); end
def invoke_with_conflict_check(&block); end
def on_conflict_behavior(); end
def on_file_clash_behavior(); end
def pretend?(); end
def relative_destination(); end
def revoke!(); end
def say_status(status, color); end
end
class Bundler::Thor::Actions::EmptyDirectory
end
class Bundler::Thor::Actions::InjectIntoFile
def behavior(); end
def flag(); end
def initialize(base, destination, data, config); end
def replace!(regexp, string, force); end
def replacement(); end
def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end
end
class Bundler::Thor::Actions::InjectIntoFile
end
module Bundler::Thor::Actions
def self.included(base); end
end
class Bundler::Thor::AmbiguousCommandError
end
class Bundler::Thor::AmbiguousCommandError
end
Bundler::Thor::AmbiguousTaskError = Bundler::Thor::AmbiguousCommandError
class Bundler::Thor::Argument
def banner(); end
def default(); end
def default_banner(); end
def description(); end
def enum(); end
def human_name(); end
def initialize(name, options=T.unsafe(nil)); end
def name(); end
def required(); end
def required?(); end
def show_default?(); end
def type(); end
def usage(); end
def valid_type?(type); end
def validate!(); end
VALID_TYPES = ::T.let(nil, ::T.untyped)
end
class Bundler::Thor::Argument
end
class Bundler::Thor::Arguments
def initialize(arguments=T.unsafe(nil)); end
def parse(args); end
def remaining(); end
NUMERIC = ::T.let(nil, ::T.untyped)
end
class Bundler::Thor::Arguments
def self.parse(*args); end
def self.split(args); end
end
module Bundler::Thor::Base
def args(); end
def args=(args); end
def initialize(args=T.unsafe(nil), local_options=T.unsafe(nil), config=T.unsafe(nil)); end
def options(); end
def options=(options); end
def parent_options(); end
def parent_options=(parent_options); end
end
module Bundler::Thor::Base::ClassMethods
def all_commands(); end
def all_tasks(); end
def allow_incompatible_default_type!(); end
def argument(name, options=T.unsafe(nil)); end
def arguments(); end
def attr_accessor(*arg); end
def attr_reader(*arg); end
def attr_writer(*arg); end
def baseclass(); end
def basename(); end
def build_option(name, options, scope); end
def build_options(options, scope); end
def check_default_type(); end
def check_default_type!(); end
def check_unknown_options(); end
def check_unknown_options!(); end