sorbet-runtime 0.5.10746 → 0.5.10754
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/types/generic.rb +2 -0
- data/lib/types/private/methods/signature_validation.rb +13 -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: dc0224a19fc63681cdbed701daa40eb3b016bac0501b8a44b4a2e870b5b509de
|
4
|
+
data.tar.gz: f42356ede5a9c0eaff0ee1368c8e0a53dfd67f6b7e5bebe3cb5ad3102a4235f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1be1d05220309651fcc3ae369ff0398325616d8876597b5cfb9bf229bc678eab276bccf7898d6bef8512b1dbeca2d08fbb4ee245e08e61387bcfec4b42c93bf
|
7
|
+
data.tar.gz: e3b262f59f6c380febd7103d2c881f4fc606135038ee00b348bd313faf60217b8eac8e357bcbb97753ce7c63ae4550eeab53e5b424bed2dbc609d76b432387c7
|
data/lib/types/generic.rb
CHANGED
@@ -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.
|
4
|
+
version: 0.5.10754
|
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-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|