sorbet-runtime 0.5.10746 → 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: e6bcedeaf90714394018a3e8436baefbffb3f77b843f454be9f50d8bbc7b6829
4
- data.tar.gz: a51b68a105a3af3544b131969d4a205bd20c26c02f9d0962df2ebc121892d6aa
3
+ metadata.gz: 07af5e3971f3c81d749d12759d86df688926d0dbcaec0c79837301901c7887c3
4
+ data.tar.gz: 71dfb5e8ace52b0820a0f6d6329057065bd04dadf38ad965cfd0c17b43f9b5cc
5
5
  SHA512:
6
- metadata.gz: c06ea601a5e70e887b32075c7f796411a8d6eae5396e0f068c63611f703e22da6c9b4d4671a3d09bd241ee3b9efb48ac3c7de23decdca8d5022333a26ba3f766
7
- data.tar.gz: 99a0b8cd292f02116d6b1347a995cc6d3c37d021e25491ff3ec351b9ee6ff917a45344efaef518eabd20c0a8017f9f07eac7a5d856a0ef9ece41a3c6526ab214
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.10746
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-04-01 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