sorbet-runtime 0.5.9707 → 0.5.9724

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: 905647a77a0f504f043dfe304223e5f68a08ae1c14fb7e5de373b367ec003539
4
- data.tar.gz: c69f42efd254422b1d55239b39931ce23787c86274f8fe658d87b9966cab09fe
3
+ metadata.gz: d92a17345bd105fd3569c43d4d9db24b41980cb59754d2ae3d5809c9ae88fc49
4
+ data.tar.gz: 196dcd0bee2cde59c47878a13be9d2e41053e3f1f26502f8ec2f7620fc5c5033
5
5
  SHA512:
6
- metadata.gz: f2b01d858e1c83680394665d13b56f45c502b27ce6d6966481142634109671a2d48094c4f0b4c4ad574c4677cf7e37e851637f35ecace79ef8822530badd0d9b
7
- data.tar.gz: ac659c0559df29c0e5ab8db0fedbd854b4b647d6e8ebcb84df6746bbf028771e4eedc76fa4a200d75a7b2d38f7c60fdc49b58b3e20b141363e03621543605dd8
6
+ metadata.gz: d694b51831fb2cfe44e9897505df35c638b8fee4ac06a5c9ec7294b6052bc1f133a09bfa081a48ceddb81ce760ff20de51ff713a8948561974d20b3b86e4ccdf
7
+ data.tar.gz: e734406bb937a38a077ba8a598f6ba2934e947d0162c4726ffe04d0aa8f0e479ac579476bf3cee708e3702fc0169dd4bfc6531a8a593e7c3cd301c894d75f01c
@@ -103,6 +103,12 @@ class T::Private::Methods::Signature
103
103
  if @arg_types.length > @req_arg_count
104
104
  # Note that this is actually is supported by Ruby, but it would add complexity to
105
105
  # support it here, and I'm happy to discourage its use anyway.
106
+ #
107
+ # If you are seeing this error and surprised by it, it's possible that you have
108
+ # overridden the method described in the error message. For example, Rails defines
109
+ # def self.update!(id = :all, attributes)
110
+ # on AR models. If you have also defined `self.update!` on an AR model you might
111
+ # see this error. The simplest resolution is to rename your method.
106
112
  raise "Required params after optional params are not supported in method declarations. Method: #{method_desc}"
107
113
  end
108
114
  @arg_types << [param_name, type]
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.9707
4
+ version: 0.5.9724
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-01 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest