sorbet-runtime 0.5.6400 → 0.5.6401
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: 3baf5e6dbee3cab2198e345e42c1875e2336646b30a189992a9c2e3e129ca53b
|
4
|
+
data.tar.gz: c6a0eca3846188cc89e8ec44474907b27cb29fa6281fd2a93719e488a776697b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7250061e134ee0d2ae8ccf0162610491853702164a02698962c09ba13246bc2aa779d676e95090e21338a0be22a159245d53414f95bd9186a096131736c1d7ba
|
7
|
+
data.tar.gz: 1a26c625cbd6f7a3621c6d1a715182ca7b487485aa822de10f5f32d659ce4b743bb44ce14ae0596a9e788c68398f9ac36ab2bb3445b88c5f670912708fd76b17
|
@@ -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.6401
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|