dry-monads-sorbet 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +14 -22
- data/.gitignore +3 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -6
- data/bin/tapioca +29 -0
- data/dry-monads-sorbet.gemspec +3 -2
- data/lib/bundled_rbi/dry-monads.rbi +3 -3
- data/lib/dry/monads/sorbet/version.rb +1 -1
- data/nix/sources.json +14 -0
- data/nix/sources.nix +174 -0
- data/run_ci.sh +7 -0
- data/shell.nix +20 -0
- data/sorbet/config +6 -0
- data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
- data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
- data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
- data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
- data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
- data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
- data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
- data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
- data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
- data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
- data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
- data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
- data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
- data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
- data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
- data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
- data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
- data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2345 -1766
- data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
- data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
- data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
- data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
- data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
- data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
- data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
- data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
- data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
- data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
- data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +65 -68
- data/.ruby-version +0 -1
- data/sorbet/rbi/gems/activesupport.rbi +0 -1722
- data/sorbet/rbi/gems/byebug.rbi +0 -1041
- data/sorbet/rbi/gems/coderay.rbi +0 -285
- data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
- data/sorbet/rbi/gems/docile.rbi +0 -32
- data/sorbet/rbi/gems/dry-core.rbi +0 -38
- data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
- data/sorbet/rbi/gems/dry-monads.rbi +0 -510
- data/sorbet/rbi/gems/em-websocket.rbi +0 -225
- data/sorbet/rbi/gems/eventmachine.rbi +0 -489
- data/sorbet/rbi/gems/ffaker.rbi +0 -60
- data/sorbet/rbi/gems/guard.rbi +0 -397
- data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
- data/sorbet/rbi/gems/i18n.rbi +0 -133
- data/sorbet/rbi/gems/kwalify.rbi +0 -340
- data/sorbet/rbi/gems/listen.rbi +0 -324
- data/sorbet/rbi/gems/lumberjack.rbi +0 -300
- data/sorbet/rbi/gems/method_source.rbi +0 -64
- data/sorbet/rbi/gems/multi_json.rbi +0 -62
- data/sorbet/rbi/gems/nenv.rbi +0 -60
- data/sorbet/rbi/gems/notiffany.rbi +0 -215
- data/sorbet/rbi/gems/parallel.rbi +0 -82
- data/sorbet/rbi/gems/parser.rbi +0 -1846
- data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
- data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
- data/sorbet/rbi/gems/rb-readline.rbi +0 -767
- data/sorbet/rbi/gems/reek.rbi +0 -1027
- data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
- data/sorbet/rbi/gems/rspec-support.rbi +0 -280
- data/sorbet/rbi/gems/rspec.rbi +0 -15
- data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
- data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
- data/sorbet/rbi/gems/rubocop.rbi +0 -6841
- data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
- data/sorbet/rbi/gems/shellany.rbi +0 -29
- data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
- data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
- data/sorbet/rbi/gems/simplecov.rbi +0 -361
- data/sorbet/rbi/gems/sqlite3.rbi +0 -354
- data/sorbet/rbi/gems/stackprof.rbi +0 -52
- data/sorbet/rbi/gems/thor.rbi +0 -32
- data/sorbet/rbi/gems/thread_safe.rbi +0 -82
- data/sorbet/rbi/gems/timecop.rbi +0 -98
- data/sorbet/rbi/gems/tzinfo.rbi +0 -406
- data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
- data/sorbet/rbi/hidden-definitions/errors.txt +0 -7267
- data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14661
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
- data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
- data/sorbet/rbi/todo.rbi +0 -8
@@ -0,0 +1,697 @@
|
|
1
|
+
# DO NOT EDIT MANUALLY
|
2
|
+
# This is an autogenerated file for types exported from the `dry-monads` gem.
|
3
|
+
# Please instead update this file by running `bin/tapioca gem dry-monads`.
|
4
|
+
|
5
|
+
# typed: true
|
6
|
+
|
7
|
+
module Dry
|
8
|
+
class << self
|
9
|
+
def Equalizer(*keys, **options); end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
module Dry::Monads
|
14
|
+
include ::Dry::Core::Constants
|
15
|
+
extend ::Dry::Monads::Maybe::Mixin::Constructors
|
16
|
+
extend ::Dry::Monads::Result::Mixin::Constructors
|
17
|
+
extend ::Dry::Monads::Validated::Mixin::Constructors
|
18
|
+
extend ::Dry::Monads::Lazy::Mixin::Constructors
|
19
|
+
extend ::Dry::Monads::Try::Mixin::Constructors
|
20
|
+
extend ::Dry::Monads::Task::Mixin::Constructors
|
21
|
+
|
22
|
+
class << self
|
23
|
+
def Result(error, **options); end
|
24
|
+
def [](*monads); end
|
25
|
+
def included(base); end
|
26
|
+
|
27
|
+
protected
|
28
|
+
|
29
|
+
def registry=(registry); end
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def all_loaded?; end
|
34
|
+
def constructors; end
|
35
|
+
def known_monads; end
|
36
|
+
def load_monad(name); end
|
37
|
+
def register_mixin(name, mod); end
|
38
|
+
def registry; end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class Dry::Monads::ConstructorNotAppliedError < ::NoMethodError
|
43
|
+
def initialize(method_name, constructor_name); end
|
44
|
+
end
|
45
|
+
|
46
|
+
module Dry::Monads::ConversionStubs
|
47
|
+
class << self
|
48
|
+
def [](*method_names); end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
module Dry::Monads::ConversionStubs::Methods
|
53
|
+
private
|
54
|
+
|
55
|
+
def to_maybe; end
|
56
|
+
def to_result; end
|
57
|
+
def to_validated; end
|
58
|
+
|
59
|
+
class << self
|
60
|
+
def to_maybe; end
|
61
|
+
def to_result; end
|
62
|
+
def to_validated; end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
module Dry::Monads::Curry
|
67
|
+
class << self
|
68
|
+
def call(value); end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
module Dry::Monads::Do
|
73
|
+
extend ::Dry::Monads::Do::Mixin
|
74
|
+
include ::Dry::Monads::Do::All
|
75
|
+
|
76
|
+
class << self
|
77
|
+
def coerce_to_monad(monads); end
|
78
|
+
def for(*methods); end
|
79
|
+
def halt(result); end
|
80
|
+
def included(base); end
|
81
|
+
def method_visibility(mod, method); end
|
82
|
+
def wrap_method(target, method, visibility); end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
module Dry::Monads::Do::All
|
87
|
+
extend ::Dry::Monads::Do::All::InstanceMixin
|
88
|
+
|
89
|
+
class << self
|
90
|
+
def included(base); end
|
91
|
+
def wrap_defined_methods(klass, target); end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
module Dry::Monads::Do::All::InstanceMixin
|
96
|
+
def extended(object); end
|
97
|
+
end
|
98
|
+
|
99
|
+
class Dry::Monads::Do::All::MethodTracker < ::Module
|
100
|
+
def initialize(wrappers); end
|
101
|
+
|
102
|
+
def extend_object(target); end
|
103
|
+
def wrap_method(target, method); end
|
104
|
+
def wrappers; end
|
105
|
+
end
|
106
|
+
|
107
|
+
Dry::Monads::Do::DELEGATE = T.let(T.unsafe(nil), String)
|
108
|
+
|
109
|
+
class Dry::Monads::Do::Halt < ::StandardError
|
110
|
+
def initialize(result); end
|
111
|
+
|
112
|
+
def result; end
|
113
|
+
end
|
114
|
+
|
115
|
+
class Dry::Monads::Do::MethodTracker < ::Module
|
116
|
+
def initialize(tracked_methods, base, wrapper); end
|
117
|
+
end
|
118
|
+
|
119
|
+
module Dry::Monads::Do::Mixin
|
120
|
+
def bind(monads); end
|
121
|
+
def call; end
|
122
|
+
end
|
123
|
+
|
124
|
+
Dry::Monads::Do::VISIBILITY_WORD = T.let(T.unsafe(nil), Hash)
|
125
|
+
Dry::Monads::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
|
126
|
+
Dry::Monads::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
127
|
+
Dry::Monads::EMPTY_OPTS = T.let(T.unsafe(nil), Hash)
|
128
|
+
Dry::Monads::EMPTY_SET = T.let(T.unsafe(nil), Set)
|
129
|
+
Dry::Monads::EMPTY_STRING = T.let(T.unsafe(nil), String)
|
130
|
+
Dry::Monads::Failure = Dry::Monads::Result::Failure
|
131
|
+
Dry::Monads::IDENTITY = T.let(T.unsafe(nil), Proc)
|
132
|
+
Dry::Monads::Invalid = Dry::Monads::Validated::Invalid
|
133
|
+
|
134
|
+
class Dry::Monads::InvalidFailureTypeError < ::StandardError
|
135
|
+
def initialize(failure); end
|
136
|
+
end
|
137
|
+
|
138
|
+
class Dry::Monads::Lazy < ::Dry::Monads::Task
|
139
|
+
extend ::Dry::Core::Deprecations::Interface
|
140
|
+
|
141
|
+
def complete?(*args, &block); end
|
142
|
+
def evaluated?; end
|
143
|
+
def force; end
|
144
|
+
def force!; end
|
145
|
+
def inspect; end
|
146
|
+
def to_s; end
|
147
|
+
def value!; end
|
148
|
+
|
149
|
+
class << self
|
150
|
+
def new(promise = T.unsafe(nil), &block); end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
module Dry::Monads::Lazy::Mixin
|
155
|
+
include ::Dry::Monads::Lazy::Mixin::Constructors
|
156
|
+
end
|
157
|
+
|
158
|
+
module Dry::Monads::Lazy::Mixin::Constructors
|
159
|
+
def Lazy(&block); end
|
160
|
+
end
|
161
|
+
|
162
|
+
Dry::Monads::Lazy::Mixin::Lazy = Dry::Monads::Lazy
|
163
|
+
Dry::Monads::Lazy::Mixin::Unit = T.let(T.unsafe(nil), Object)
|
164
|
+
|
165
|
+
class Dry::Monads::List
|
166
|
+
include ::Dry::Core::Equalizer::Methods
|
167
|
+
include ::Dry::Monads::Transformer
|
168
|
+
extend ::Dry::Core::Deprecations::Interface
|
169
|
+
|
170
|
+
def initialize(value, type = T.unsafe(nil)); end
|
171
|
+
|
172
|
+
def +(other); end
|
173
|
+
def apply(list = T.unsafe(nil), &block); end
|
174
|
+
def bind(*args); end
|
175
|
+
def collect; end
|
176
|
+
def deconstruct; end
|
177
|
+
def empty?; end
|
178
|
+
def filter(&block); end
|
179
|
+
def first; end
|
180
|
+
def fmap(*args); end
|
181
|
+
def fold_left(initial, &block); end
|
182
|
+
def fold_right(initial); end
|
183
|
+
def foldl(initial, &block); end
|
184
|
+
def foldr(initial); end
|
185
|
+
def head; end
|
186
|
+
def inspect; end
|
187
|
+
def last; end
|
188
|
+
def map(&block); end
|
189
|
+
def monad; end
|
190
|
+
def reduce(initial, &block); end
|
191
|
+
def reverse; end
|
192
|
+
def select(&block); end
|
193
|
+
def size; end
|
194
|
+
def sort; end
|
195
|
+
def tail; end
|
196
|
+
def to_a; end
|
197
|
+
def to_ary; end
|
198
|
+
def to_monad; end
|
199
|
+
def to_s; end
|
200
|
+
def traverse(proc = T.unsafe(nil), &block); end
|
201
|
+
def type; end
|
202
|
+
def typed(type = T.unsafe(nil)); end
|
203
|
+
def typed?; end
|
204
|
+
def value; end
|
205
|
+
|
206
|
+
private
|
207
|
+
|
208
|
+
def coerce(other); end
|
209
|
+
|
210
|
+
class << self
|
211
|
+
def [](*values); end
|
212
|
+
def coerce(value, type = T.unsafe(nil)); end
|
213
|
+
def pure(value = T.unsafe(nil), type = T.unsafe(nil), &block); end
|
214
|
+
def unfold(state, type = T.unsafe(nil)); end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
Dry::Monads::List::EMPTY = T.let(T.unsafe(nil), Dry::Monads::List)
|
219
|
+
|
220
|
+
class Dry::Monads::List::ListBuilder
|
221
|
+
def initialize(type); end
|
222
|
+
|
223
|
+
def [](*args); end
|
224
|
+
def coerce(value); end
|
225
|
+
def pure(val = T.unsafe(nil), &block); end
|
226
|
+
def type; end
|
227
|
+
|
228
|
+
class << self
|
229
|
+
def [](*_arg0); end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
Dry::Monads::List::Maybe = T.let(T.unsafe(nil), Dry::Monads::List::ListBuilder)
|
234
|
+
|
235
|
+
module Dry::Monads::List::Mixin
|
236
|
+
def List(value); end
|
237
|
+
end
|
238
|
+
|
239
|
+
Dry::Monads::List::Mixin::L = Dry::Monads::List
|
240
|
+
Dry::Monads::List::Mixin::List = Dry::Monads::List
|
241
|
+
Dry::Monads::List::Result = T.let(T.unsafe(nil), Dry::Monads::List::ListBuilder)
|
242
|
+
Dry::Monads::List::Task = T.let(T.unsafe(nil), Dry::Monads::List::ListBuilder)
|
243
|
+
Dry::Monads::List::Try = T.let(T.unsafe(nil), Dry::Monads::List::ListBuilder)
|
244
|
+
Dry::Monads::List::Validated = T.let(T.unsafe(nil), Dry::Monads::List::ListBuilder)
|
245
|
+
|
246
|
+
class Dry::Monads::Maybe
|
247
|
+
extend T::Generic
|
248
|
+
include ::Dry::Monads::Transformer
|
249
|
+
extend ::Dry::Core::Constants
|
250
|
+
extend ::Dry::Core::ClassAttributes
|
251
|
+
|
252
|
+
# Elem = type_member
|
253
|
+
|
254
|
+
def failure?; end
|
255
|
+
def monad; end
|
256
|
+
def none?; end
|
257
|
+
def some?; end
|
258
|
+
def success?; end
|
259
|
+
def to_maybe; end
|
260
|
+
def to_monad; end
|
261
|
+
|
262
|
+
class << self
|
263
|
+
def coerce(value); end
|
264
|
+
def lift(*args, &block); end
|
265
|
+
def pure(value = T.unsafe(nil), &block); end
|
266
|
+
def to_proc; end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
module Dry::Monads::Maybe::Hash
|
271
|
+
class << self
|
272
|
+
def all(hash, trace = T.unsafe(nil)); end
|
273
|
+
def filter(hash); end
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
module Dry::Monads::Maybe::Mixin
|
278
|
+
include ::Dry::Monads::Maybe::Mixin::Constructors
|
279
|
+
end
|
280
|
+
|
281
|
+
module Dry::Monads::Maybe::Mixin::Constructors
|
282
|
+
def Maybe(value); end
|
283
|
+
def None; end
|
284
|
+
def Some(value = T.unsafe(nil), &block); end
|
285
|
+
end
|
286
|
+
|
287
|
+
Dry::Monads::Maybe::Mixin::Maybe = Dry::Monads::Maybe
|
288
|
+
Dry::Monads::Maybe::Mixin::None = Dry::Monads::Maybe::None
|
289
|
+
Dry::Monads::Maybe::Mixin::Some = Dry::Monads::Maybe::Some
|
290
|
+
|
291
|
+
class Dry::Monads::Maybe::None < ::Dry::Monads::Maybe
|
292
|
+
include ::Dry::Monads::RightBiased::Left
|
293
|
+
|
294
|
+
def initialize(trace = T.unsafe(nil)); end
|
295
|
+
|
296
|
+
def ==(other); end
|
297
|
+
def deconstruct; end
|
298
|
+
def eql?(other); end
|
299
|
+
def filter(_ = T.unsafe(nil)); end
|
300
|
+
def hash; end
|
301
|
+
def inspect; end
|
302
|
+
def maybe(*_arg0); end
|
303
|
+
def or(*args); end
|
304
|
+
def or_fmap(*args, &block); end
|
305
|
+
def to_result(fail = T.unsafe(nil)); end
|
306
|
+
def to_s; end
|
307
|
+
def trace; end
|
308
|
+
|
309
|
+
class << self
|
310
|
+
def instance; end
|
311
|
+
|
312
|
+
private
|
313
|
+
|
314
|
+
def method_missing(m, *_arg1); end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
class Dry::Monads::Maybe::Some < ::Dry::Monads::Maybe
|
319
|
+
include ::Dry::Core::Equalizer::Methods
|
320
|
+
include ::Dry::Monads::RightBiased::Right
|
321
|
+
|
322
|
+
def initialize(value = T.unsafe(nil)); end
|
323
|
+
|
324
|
+
def filter(with = T.unsafe(nil), &block); end
|
325
|
+
def fmap(*args, &block); end
|
326
|
+
def inspect; end
|
327
|
+
def maybe(*args, &block); end
|
328
|
+
def to_result(_fail = T.unsafe(nil)); end
|
329
|
+
def to_s; end
|
330
|
+
|
331
|
+
class << self
|
332
|
+
def [](*value); end
|
333
|
+
def call(*_arg0); end
|
334
|
+
def to_proc; end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
Dry::Monads::None = Dry::Monads::Maybe::None
|
339
|
+
|
340
|
+
class Dry::Monads::Result
|
341
|
+
extend T::Generic
|
342
|
+
include ::Dry::Monads::Transformer
|
343
|
+
|
344
|
+
# FailureType = type_member
|
345
|
+
# SuccessType = type_member
|
346
|
+
|
347
|
+
def failure; end
|
348
|
+
def monad; end
|
349
|
+
def success; end
|
350
|
+
def to_monad; end
|
351
|
+
def to_result; end
|
352
|
+
|
353
|
+
class << self
|
354
|
+
def pure(value = T.unsafe(nil), &block); end
|
355
|
+
end
|
356
|
+
end
|
357
|
+
|
358
|
+
class Dry::Monads::Result::Failure < ::Dry::Monads::Result
|
359
|
+
include ::Dry::Monads::RightBiased::Left
|
360
|
+
include ::Dry::Core::Equalizer::Methods
|
361
|
+
|
362
|
+
def initialize(value, trace = T.unsafe(nil)); end
|
363
|
+
|
364
|
+
def ===(other); end
|
365
|
+
def alt_map(proc = T.unsafe(nil), &block); end
|
366
|
+
def either(_, g); end
|
367
|
+
def failure; end
|
368
|
+
def failure?; end
|
369
|
+
def flip; end
|
370
|
+
def inspect; end
|
371
|
+
def or(*args); end
|
372
|
+
def or_fmap(*args, &block); end
|
373
|
+
def result(f, _); end
|
374
|
+
def success?; end
|
375
|
+
def to_maybe; end
|
376
|
+
def to_s; end
|
377
|
+
def to_validated; end
|
378
|
+
def trace; end
|
379
|
+
def value_or(val = T.unsafe(nil)); end
|
380
|
+
|
381
|
+
class << self
|
382
|
+
def [](*value); end
|
383
|
+
def call(*_arg0); end
|
384
|
+
def to_proc; end
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
class Dry::Monads::Result::Fixed < ::Module
|
389
|
+
def initialize(error, **_options); end
|
390
|
+
|
391
|
+
private
|
392
|
+
|
393
|
+
def included(base); end
|
394
|
+
|
395
|
+
class << self
|
396
|
+
def [](error, **options); end
|
397
|
+
end
|
398
|
+
end
|
399
|
+
|
400
|
+
module Dry::Monads::Result::Mixin
|
401
|
+
include ::Dry::Monads::Result::Mixin::Constructors
|
402
|
+
end
|
403
|
+
|
404
|
+
module Dry::Monads::Result::Mixin::Constructors
|
405
|
+
def Failure(value = T.unsafe(nil), &block); end
|
406
|
+
def Success(value = T.unsafe(nil), &block); end
|
407
|
+
end
|
408
|
+
|
409
|
+
Dry::Monads::Result::Mixin::Failure = Dry::Monads::Result::Failure
|
410
|
+
Dry::Monads::Result::Mixin::Success = Dry::Monads::Result::Success
|
411
|
+
|
412
|
+
class Dry::Monads::Result::Success < ::Dry::Monads::Result
|
413
|
+
include ::Dry::Monads::RightBiased::Right
|
414
|
+
include ::Dry::Core::Equalizer::Methods
|
415
|
+
extend ::Dry::Core::Deprecations::Interface
|
416
|
+
|
417
|
+
def initialize(value); end
|
418
|
+
|
419
|
+
def alt_map(_ = T.unsafe(nil)); end
|
420
|
+
def either(f, _); end
|
421
|
+
def failure?; end
|
422
|
+
def flip; end
|
423
|
+
def fmap(*args, &block); end
|
424
|
+
def inspect; end
|
425
|
+
def result(_, f); end
|
426
|
+
def success; end
|
427
|
+
def success?; end
|
428
|
+
def to_maybe; end
|
429
|
+
def to_s; end
|
430
|
+
def to_validated; end
|
431
|
+
|
432
|
+
class << self
|
433
|
+
def [](*value); end
|
434
|
+
def call(*_arg0); end
|
435
|
+
def to_proc; end
|
436
|
+
end
|
437
|
+
end
|
438
|
+
|
439
|
+
module Dry::Monads::RightBiased; end
|
440
|
+
|
441
|
+
module Dry::Monads::RightBiased::Left
|
442
|
+
def and(_); end
|
443
|
+
def apply(*_arg0); end
|
444
|
+
def bind(*_arg0); end
|
445
|
+
def deconstruct; end
|
446
|
+
def deconstruct_keys(keys); end
|
447
|
+
def discard; end
|
448
|
+
def flatten; end
|
449
|
+
def fmap(*_arg0); end
|
450
|
+
def or(*_arg0); end
|
451
|
+
def or_fmap(*_arg0); end
|
452
|
+
def tee(*_arg0); end
|
453
|
+
def value!; end
|
454
|
+
def value_or(val = T.unsafe(nil)); end
|
455
|
+
def |(alt); end
|
456
|
+
|
457
|
+
class << self
|
458
|
+
def trace_caller; end
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
module Dry::Monads::RightBiased::Right
|
463
|
+
def ===(other); end
|
464
|
+
def and(mb); end
|
465
|
+
def apply(val = T.unsafe(nil), &block); end
|
466
|
+
def bind(*args, **kwargs); end
|
467
|
+
def deconstruct; end
|
468
|
+
def deconstruct_keys(keys); end
|
469
|
+
def discard; end
|
470
|
+
def flatten; end
|
471
|
+
def fmap(*_arg0); end
|
472
|
+
def or(*_arg0); end
|
473
|
+
def or_fmap(*_arg0); end
|
474
|
+
def tee(*args, &block); end
|
475
|
+
def value!; end
|
476
|
+
def value_or(_val = T.unsafe(nil)); end
|
477
|
+
def |(_alt); end
|
478
|
+
|
479
|
+
private
|
480
|
+
|
481
|
+
def curry; end
|
482
|
+
def destructure(value); end
|
483
|
+
|
484
|
+
class << self
|
485
|
+
def included(m); end
|
486
|
+
end
|
487
|
+
end
|
488
|
+
|
489
|
+
Dry::Monads::Self = T.let(T.unsafe(nil), Proc)
|
490
|
+
Dry::Monads::Some = Dry::Monads::Maybe::Some
|
491
|
+
module Dry::Monads::Sorbet; end
|
492
|
+
Dry::Monads::Sorbet::VERSION = T.let(T.unsafe(nil), String)
|
493
|
+
Dry::Monads::Success = Dry::Monads::Result::Success
|
494
|
+
|
495
|
+
class Dry::Monads::Task
|
496
|
+
def initialize(promise); end
|
497
|
+
|
498
|
+
def ==(other); end
|
499
|
+
def apply(val = T.unsafe(nil), &block); end
|
500
|
+
def bind(&block); end
|
501
|
+
def complete?; end
|
502
|
+
def discard; end
|
503
|
+
def fmap(&block); end
|
504
|
+
def inspect; end
|
505
|
+
def monad; end
|
506
|
+
def or(&block); end
|
507
|
+
def or_fmap(&block); end
|
508
|
+
def then(&block); end
|
509
|
+
def to_maybe; end
|
510
|
+
def to_monad; end
|
511
|
+
def to_result; end
|
512
|
+
def to_s; end
|
513
|
+
def value!; end
|
514
|
+
def value_or(&block); end
|
515
|
+
def wait(timeout = T.unsafe(nil)); end
|
516
|
+
|
517
|
+
protected
|
518
|
+
|
519
|
+
def promise; end
|
520
|
+
|
521
|
+
private
|
522
|
+
|
523
|
+
def compare_promises(x, y); end
|
524
|
+
def curry(value); end
|
525
|
+
|
526
|
+
class << self
|
527
|
+
def [](executor, &block); end
|
528
|
+
def failed(exc); end
|
529
|
+
def new(promise = T.unsafe(nil), &block); end
|
530
|
+
def pure(value = T.unsafe(nil), &block); end
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
module Dry::Monads::Task::Mixin
|
535
|
+
include ::Dry::Monads::Task::Mixin::Constructors
|
536
|
+
|
537
|
+
class << self
|
538
|
+
def [](executor); end
|
539
|
+
end
|
540
|
+
end
|
541
|
+
|
542
|
+
module Dry::Monads::Task::Mixin::Constructors
|
543
|
+
def Task(&block); end
|
544
|
+
end
|
545
|
+
|
546
|
+
Dry::Monads::Task::Mixin::Task = Dry::Monads::Task
|
547
|
+
Dry::Monads::Task::Mixin::Unit = T.let(T.unsafe(nil), Object)
|
548
|
+
class Dry::Monads::Task::Promise < ::Concurrent::Promise; end
|
549
|
+
|
550
|
+
module Dry::Monads::Transformer
|
551
|
+
def fmap2(*args); end
|
552
|
+
def fmap3(*args); end
|
553
|
+
end
|
554
|
+
|
555
|
+
Dry::Monads::Traverse = T.let(T.unsafe(nil), Hash)
|
556
|
+
|
557
|
+
class Dry::Monads::Try
|
558
|
+
def error?; end
|
559
|
+
def exception; end
|
560
|
+
def failure?; end
|
561
|
+
def success?; end
|
562
|
+
def to_monad; end
|
563
|
+
def value?; end
|
564
|
+
|
565
|
+
class << self
|
566
|
+
def [](*exceptions, &block); end
|
567
|
+
def lift(*args, &block); end
|
568
|
+
def pure(value = T.unsafe(nil), exceptions = T.unsafe(nil), &block); end
|
569
|
+
def run(exceptions, f); end
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
Dry::Monads::Try::DEFAULT_EXCEPTIONS = T.let(T.unsafe(nil), Array)
|
574
|
+
|
575
|
+
class Dry::Monads::Try::Error < ::Dry::Monads::Try
|
576
|
+
include ::Dry::Core::Equalizer::Methods
|
577
|
+
include ::Dry::Monads::RightBiased::Left
|
578
|
+
|
579
|
+
def initialize(exception); end
|
580
|
+
|
581
|
+
def ===(other); end
|
582
|
+
def inspect; end
|
583
|
+
def or(*args); end
|
584
|
+
def recover(*errors); end
|
585
|
+
def to_maybe; end
|
586
|
+
def to_result; end
|
587
|
+
def to_s; end
|
588
|
+
|
589
|
+
class << self
|
590
|
+
def call(*_arg0); end
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
module Dry::Monads::Try::Mixin
|
595
|
+
include ::Dry::Monads::Try::Mixin::Constructors
|
596
|
+
|
597
|
+
def Error(error = T.unsafe(nil), &block); end
|
598
|
+
def Value(value = T.unsafe(nil), exceptions = T.unsafe(nil), &block); end
|
599
|
+
end
|
600
|
+
|
601
|
+
module Dry::Monads::Try::Mixin::Constructors
|
602
|
+
def Try(*exceptions, &f); end
|
603
|
+
end
|
604
|
+
|
605
|
+
Dry::Monads::Try::Mixin::Try = Dry::Monads::Try
|
606
|
+
|
607
|
+
class Dry::Monads::Try::Value < ::Dry::Monads::Try
|
608
|
+
include ::Dry::Core::Equalizer::Methods
|
609
|
+
include ::Dry::Monads::RightBiased::Right
|
610
|
+
|
611
|
+
def initialize(exceptions, value); end
|
612
|
+
|
613
|
+
def bind(*args); end
|
614
|
+
def catchable; end
|
615
|
+
def fmap(*args, &block); end
|
616
|
+
def inspect; end
|
617
|
+
def recover(*_errors); end
|
618
|
+
def to_maybe; end
|
619
|
+
def to_result; end
|
620
|
+
def to_s; end
|
621
|
+
|
622
|
+
private
|
623
|
+
|
624
|
+
def bind_call(*args, **kwargs); end
|
625
|
+
|
626
|
+
class << self
|
627
|
+
def call(*_arg0); end
|
628
|
+
def to_proc; end
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
Dry::Monads::Undefined = T.let(T.unsafe(nil), Object)
|
633
|
+
Dry::Monads::Unit = T.let(T.unsafe(nil), Object)
|
634
|
+
|
635
|
+
class Dry::Monads::UnwrapError < ::StandardError
|
636
|
+
def initialize(receiver); end
|
637
|
+
|
638
|
+
def receiver; end
|
639
|
+
end
|
640
|
+
|
641
|
+
Dry::Monads::Valid = Dry::Monads::Validated::Valid
|
642
|
+
|
643
|
+
class Dry::Monads::Validated
|
644
|
+
def bind(*_arg0); end
|
645
|
+
def to_monad; end
|
646
|
+
|
647
|
+
class << self
|
648
|
+
def pure(value = T.unsafe(nil), &block); end
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
class Dry::Monads::Validated::Invalid < ::Dry::Monads::Validated
|
653
|
+
include ::Dry::Core::Equalizer::Methods
|
654
|
+
|
655
|
+
def initialize(error, trace = T.unsafe(nil)); end
|
656
|
+
|
657
|
+
def ===(other); end
|
658
|
+
def alt_map(proc = T.unsafe(nil), &block); end
|
659
|
+
def apply(val = T.unsafe(nil), &block); end
|
660
|
+
def error; end
|
661
|
+
def fmap(_ = T.unsafe(nil)); end
|
662
|
+
def inspect; end
|
663
|
+
def or(proc = T.unsafe(nil), &block); end
|
664
|
+
def to_maybe; end
|
665
|
+
def to_result; end
|
666
|
+
def to_s; end
|
667
|
+
def trace; end
|
668
|
+
end
|
669
|
+
|
670
|
+
module Dry::Monads::Validated::Mixin
|
671
|
+
include ::Dry::Monads::Validated::Mixin::Constructors
|
672
|
+
end
|
673
|
+
|
674
|
+
module Dry::Monads::Validated::Mixin::Constructors
|
675
|
+
def Invalid(value = T.unsafe(nil), &block); end
|
676
|
+
def Valid(value = T.unsafe(nil), &block); end
|
677
|
+
end
|
678
|
+
|
679
|
+
Dry::Monads::Validated::Mixin::Invalid = Dry::Monads::Validated::Invalid
|
680
|
+
Dry::Monads::Validated::Mixin::Valid = Dry::Monads::Validated::Valid
|
681
|
+
|
682
|
+
class Dry::Monads::Validated::Valid < ::Dry::Monads::Validated
|
683
|
+
include ::Dry::Core::Equalizer::Methods
|
684
|
+
|
685
|
+
def initialize(value); end
|
686
|
+
|
687
|
+
def ===(other); end
|
688
|
+
def alt_map(_ = T.unsafe(nil)); end
|
689
|
+
def apply(val = T.unsafe(nil), &block); end
|
690
|
+
def fmap(proc = T.unsafe(nil), &block); end
|
691
|
+
def inspect; end
|
692
|
+
def or(_ = T.unsafe(nil)); end
|
693
|
+
def to_maybe; end
|
694
|
+
def to_result; end
|
695
|
+
def to_s; end
|
696
|
+
def value!; end
|
697
|
+
end
|