sorbet-runtime 0.5.10438 → 0.5.10445

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: 17995d22eb9fe960d557fa7ec104cd7c68fa97095b8f0d97f0e6b5bf784a0b2a
4
- data.tar.gz: 6d1b1a3b1c92ce9ab4159567c9d5564049353c47ab93f2047d9570f5e416df3e
3
+ metadata.gz: 39a0bf5a03e36a46f7a4ed9688e7c0bc358a9d5e9d02a87ea0349208ad4c00d8
4
+ data.tar.gz: 51fbcea4f4309d2139459e7680d7d5ac8d097ae609246a022c755c23ca25818c
5
5
  SHA512:
6
- metadata.gz: 26ac80423f7caf6e1f606366fef207d60b833777afe80d41cdc353aa744000db0ee0e0b58ff78cc583ec5762b1d8f12b36baada0e6ccaf5129665458153028b9
7
- data.tar.gz: dda551a88a0ba19a161a92a4b0f7bff6d795f9ac19741bdc9222aec3051bc27436793f6c1d1bd764f13b9bfa37e7c528269d16025ad43810be8e44fe0f66597a
6
+ metadata.gz: cb486724396b72c37929fa44e9d6d532a5eed2a142d5def8fcedc5d557f8fe4254e1df09075975c675826d2f255ff74f70ad4bc088edc69f0ee8ec15c31d299c
7
+ data.tar.gz: 24e494a74131a30a9d8233febc49f31621e3c10dadcce93e97f90eefb8a58559bd8f9b7523a14b1c03e29cdaf491713bd4b38fb018b268c75b2a18534fad514c
@@ -300,7 +300,9 @@ class T::Props::Decorator
300
300
  .checked(:never)
301
301
  end
302
302
  private def prop_nilable?(cls, rules)
303
- T::Utils::Nilable.is_union_with_nilclass(cls) || (cls == T.untyped && rules.key?(:default) && rules[:default].nil?)
303
+ # NB: `prop` and `const` do not `T::Utils::coerce the type of the prop if it is a `Module`,
304
+ # hence the bare `NilClass` check.
305
+ T::Utils::Nilable.is_union_with_nilclass(cls) || ((cls == T.untyped || cls == NilClass) && rules.key?(:default) && rules[:default].nil?)
304
306
  end
305
307
 
306
308
  # checked(:never) - Rules hash is expensive to check
@@ -20,7 +20,7 @@ module T::Types
20
20
 
21
21
  # overrides Base
22
22
  def name
23
- "T.all(#{@types.map(&:name).sort.join(', ')})"
23
+ "T.all(#{@types.map(&:name).compact.sort.join(', ')})"
24
24
  end
25
25
 
26
26
  # overrides Base
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.10438
4
+ version: 0.5.10445
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-16 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest