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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 836a1fbf0f8401ea225ae5124205ba0cdcfccab4164ab3b1e342bf285d7ea19b
4
- data.tar.gz: 8758dcc34d96534830fc097a269d45c307f6841a9f20643c633be33eca142816
3
+ metadata.gz: ce68e490798073d3289a85787f72def70b0d56d7d1f0673dc92d4936017224ec
4
+ data.tar.gz: 8b1eb1e3022360774688d4e3c5b7ff6de87a472dc337b1e2f24d741bb310a126
5
5
  SHA512:
6
- metadata.gz: 54ad13d894a1a35e28735d4e20f785e8cee486c8acf2786587639c1084ad2a881c36e0e3b8799553fb9fcc73bb7354fb085cd59402a83ff4259c7a0ef34fc935
7
- data.tar.gz: 854336ccb394ab1524e171a29f130227dfc1cc8d8cf72b1ce6453c4c2a773d9e1ecd02393b0084eca6e6cdd1e9b5c5d999305c48bee051902b917ab754b07988
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.6249
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-01-27 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest