sorbet-runtime 0.5.10741 → 0.5.10751

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: 91c8e24178df431cde3b9218648bcef5cdd4d7ef572eac38ec55ad1b9758e389
4
- data.tar.gz: 44d61dc636005679a09584872971fb57d078debaf37aed6e981eff6cddce600b
3
+ metadata.gz: 07af5e3971f3c81d749d12759d86df688926d0dbcaec0c79837301901c7887c3
4
+ data.tar.gz: 71dfb5e8ace52b0820a0f6d6329057065bd04dadf38ad965cfd0c17b43f9b5cc
5
5
  SHA512:
6
- metadata.gz: 58c8a97cb1f35e6fac24bca9233ec32ceec3080b60a8604cd005b62eec3e71d4f94a6142e019f839850a97f2a31a03d8779c24576d42670a7d9aea4946f9ed9c
7
- data.tar.gz: 0b7bc87aa10e703c13bbad9cce4fea5de3cade1044a0a10dc02d63e9a9b9e210dc17f93c9c5e71d39b439b659bea4cf8601f52c9a51dc3aceb8957074133954e
6
+ metadata.gz: d2c55b4e1e354a53a8bef39bf759c62e3e54fd2048eeee1efe55e82641a60b6f05011a7633bfb167257e3cb4efb504c368b9131364624cf0554155d90ebef893
7
+ data.tar.gz: 17942c1421f0093e1fb460cde02dced908b58968942168adea4c31f18e4d870f487f3d3e422bf96b93efb67c926afaec81b9b10862ddcafa05cb2c34405d0118
@@ -59,6 +59,19 @@ module T::Private::Methods::SignatureValidation
59
59
  case signature.mode
60
60
  when *Modes::OVERRIDE_MODES
61
61
  # Peaceful
62
+ when Modes.abstract
63
+ # Either the parent method is abstract, or it's not.
64
+ #
65
+ # If it's abstract, we want to allow overriding abstract with abstract to
66
+ # possibly narrow the type or provide more specific documentation.
67
+ #
68
+ # If it's not, then marking this method `abstract` will silently be a no-op.
69
+ # That's bad and we probably want to report an error, but fixing that
70
+ # will have to be a separate fix (that bad behavior predates this current
71
+ # comment, introduced when we fixed the abstract/abstract case).
72
+ #
73
+ # Therefore:
74
+ # Peaceful (mostly)
62
75
  when *Modes::NON_OVERRIDE_MODES
63
76
  if super_signature.mode == Modes.standard
64
77
  # Peaceful
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.10741
4
+ version: 0.5.10751
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-29 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest