sorbet-runtime 0.5.6249 → 0.5.6267
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.rb +4 -0
- 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: ce68e490798073d3289a85787f72def70b0d56d7d1f0673dc92d4936017224ec
|
4
|
+
data.tar.gz: 8b1eb1e3022360774688d4e3c5b7ff6de87a472dc337b1e2f24d741bb310a126
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1705b22fabd1e1d635316dbfc1fa7d9659f53f2ca5b3d41cd4a884c7eee30e083e97cf3cef8f2b7d25649e246e583699962d868a6225b1a4b0f06e1f790e528
|
7
|
+
data.tar.gz: 123933a7ff3af06d769cb1f794c1c49d2d0a4ba850fd2de945e63491651ea84f128abb946228c0984bd18cd378f1f344ae1aeccae92d349ce076d737b71d525c
|
@@ -11,6 +11,10 @@ class T::Private::Methods::Signature
|
|
11
11
|
# Using `Untyped` ensures we'll get an error if we ever try validation on these.
|
12
12
|
not_typed = T::Private::Types::NotTyped.new
|
13
13
|
raw_return_type = not_typed
|
14
|
+
# Map missing parameter names to "argN" positionally
|
15
|
+
parameters = parameters.each_with_index.map do |(param_kind, param_name), index|
|
16
|
+
[param_kind, param_name || "arg#{index}"]
|
17
|
+
end
|
14
18
|
raw_arg_types = parameters.map do |_param_kind, param_name|
|
15
19
|
[param_name, not_typed]
|
16
20
|
end.to_h
|
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.6267
|
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-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|