sorbet-runtime 0.5.5830 → 0.5.5835

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e03e7dc58357fc9aeeff2a04518755091f6f514fa7a7b74e93a2e4133dc52b44
4
- data.tar.gz: e68d085085a80b7bc106308ab810ba918f9886063eb2a7e1e24ac1fcb685d616
3
+ metadata.gz: 1c78c486ad11e0c1425ad311f09498c7932e29d5dc95ecd3b39d497706d918ba
4
+ data.tar.gz: c465da35e7c4a3327b4f8b2b29854f45aecfb2dfabc7863245cd82028371101a
5
5
  SHA512:
6
- metadata.gz: d236d34c7140eb4f8883ac2b7fc197fc094ac4d18d705776f0bc5f142153721f09db088d1b2a831973348a14cb9a5d7cf69bb1233b9029b90ee1d24418fd71b5
7
- data.tar.gz: 14e914a5a3620d7753c16fc2c9a2b2332a2a4aa75e2469966921ec0fd3a62d4feec665356bdbfde73624cde67a9c85b5ce4cb4268e0aa5654f58362a665e54d8
6
+ metadata.gz: f92f74be1bb881101fab6440467307a370d063d458da5014ebfed3f768cfac7c829bcbb4200492d48d49d0d1c03d4652c4cfc9fb67edd64fc54643972a0ff332
7
+ data.tar.gz: 0ff90148441a61f9cf1911fac9c6e91e065b927bb3d68a423c0371f765e11c00e4bbe3eef1b639c443603ea62a0a79ee6807ce5d54a1ab35d5bda38c23675b66
@@ -37,12 +37,12 @@ module T
37
37
  # Matches any object. In the static checker, T.untyped allows any
38
38
  # method calls or operations.
39
39
  def self.untyped
40
- T::Types::Untyped.new
40
+ T::Types::Untyped::Private::INSTANCE
41
41
  end
42
42
 
43
43
  # Indicates a function never returns (e.g. "Kernel#raise")
44
44
  def self.noreturn
45
- T::Types::NoReturn.new
45
+ T::Types::NoReturn::Private::INSTANCE
46
46
  end
47
47
 
48
48
  # T.all(<Type>, <Type>, ...) -- matches an object that has all of the types listed
@@ -62,12 +62,12 @@ module T
62
62
 
63
63
  # Matches `self`:
64
64
  def self.self_type
65
- T::Types::SelfType.new
65
+ T::Types::SelfType::Private::INSTANCE
66
66
  end
67
67
 
68
68
  # Matches the instance type in a singleton-class context
69
69
  def self.attached_class
70
- T::Types::AttachedClassType.new
70
+ T::Types::AttachedClassType::Private::INSTANCE
71
71
  end
72
72
 
73
73
  # Matches any class that subclasses or includes the provided class
@@ -29,5 +29,9 @@ module T::Types
29
29
  false
30
30
  end
31
31
  end
32
+
33
+ module Private
34
+ INSTANCE = AttachedClassType.new.freeze
35
+ end
32
36
  end
33
37
  end
@@ -21,5 +21,9 @@ module T::Types
21
21
  private def subtype_of_single?(other)
22
22
  true
23
23
  end
24
+
25
+ module Private
26
+ INSTANCE = NoReturn.new.freeze
27
+ end
24
28
  end
25
29
  end
@@ -27,5 +27,9 @@ module T::Types
27
27
  false
28
28
  end
29
29
  end
30
+
31
+ module Private
32
+ INSTANCE = SelfType.new.freeze
33
+ end
30
34
  end
31
35
  end
@@ -21,5 +21,9 @@ module T::Types
21
21
  private def subtype_of_single?(other)
22
22
  true
23
23
  end
24
+
25
+ module Private
26
+ INSTANCE = Untyped.new.freeze
27
+ end
24
28
  end
25
29
  end
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.5830
4
+ version: 0.5.5835
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-18 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest