sorbet-runtime 0.5.6395 → 0.5.6403
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/types/private/methods/signature_validation.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 934f2633647eadae126214ed8a4d32405e3a4b70d22dad1bc063ca80bcb4d5b7
|
4
|
+
data.tar.gz: 0166aadaf73d0b47d8dd2796087e8cafd5ba0bb10597e2f1142fe7d43e5675d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4853a2df561860d716b187b399b9848a32846400ae56c0047b554acc0abd4af772bb88f3969dacec5f69fb9bc6a8eaa104622fa21b56549c3862a0d0721ac7c
|
7
|
+
data.tar.gz: 42454124325c85b1739001998e11b1b3c25b663feb69f2383ed69f82f6ca71a9f1cb38fd54b7b97f407b7d1baabe0ff05ca98f768bac022a94b9012d4b916e3f
|
@@ -181,7 +181,7 @@ module T::Private::Methods::SignatureValidation
|
|
181
181
|
# arg types must be contravariant
|
182
182
|
super_signature.arg_types.zip(signature.arg_types).each_with_index do |((_super_name, super_type), (name, type)), index|
|
183
183
|
if !super_type.subtype_of?(type)
|
184
|
-
raise "Incompatible type for arg ##{index + 1} (`#{name}`) in #{mode_noun} of method " \
|
184
|
+
raise "Incompatible type for arg ##{index + 1} (`#{name}`) in signature for #{mode_noun} of method " \
|
185
185
|
"`#{signature.method_name}`:\n" \
|
186
186
|
"* Base: `#{super_type}` (in #{method_loc_str(super_signature.method)})\n" \
|
187
187
|
"* #{mode_noun.capitalize}: `#{type}` (in #{method_loc_str(signature.method)})\n" \
|
@@ -193,7 +193,7 @@ module T::Private::Methods::SignatureValidation
|
|
193
193
|
super_signature.kwarg_types.each do |name, super_type|
|
194
194
|
type = signature.kwarg_types[name]
|
195
195
|
if !super_type.subtype_of?(type)
|
196
|
-
raise "Incompatible type for arg `#{name}` in #{mode_noun} of method `#{signature.method_name}`:\n" \
|
196
|
+
raise "Incompatible type for arg `#{name}` in signature for #{mode_noun} of method `#{signature.method_name}`:\n" \
|
197
197
|
"* Base: `#{super_type}` (in #{method_loc_str(super_signature.method)})\n" \
|
198
198
|
"* #{mode_noun.capitalize}: `#{type}` (in #{method_loc_str(signature.method)})\n" \
|
199
199
|
"(The types must be contravariant.)"
|
@@ -202,7 +202,7 @@ module T::Private::Methods::SignatureValidation
|
|
202
202
|
|
203
203
|
# return types must be covariant
|
204
204
|
if !signature.return_type.subtype_of?(super_signature.return_type)
|
205
|
-
raise "Incompatible return type in #{mode_noun} of method `#{signature.method_name}`:\n" \
|
205
|
+
raise "Incompatible return type in signature for #{mode_noun} of method `#{signature.method_name}`:\n" \
|
206
206
|
"* Base: `#{super_signature.return_type}` (in #{method_loc_str(super_signature.method)})\n" \
|
207
207
|
"* #{mode_noun.capitalize}: `#{signature.return_type}` (in #{method_loc_str(signature.method)})\n" \
|
208
208
|
"(The types must be covariant.)"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet-runtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6403
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|