Merge pull request #17908 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-0.5.11500

This commit is contained in:
Patrick Linnane 2024-07-30 09:53:58 -07:00 committed by GitHub
commit c609f24efb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
90 changed files with 51 additions and 54 deletions

View File

@ -112,15 +112,15 @@ GEM
simplecov-html (0.12.3) simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4) simplecov_json_formatter (0.1.4)
simpleidn (0.2.3) simpleidn (0.2.3)
sorbet (0.5.11495) sorbet (0.5.11500)
sorbet-static (= 0.5.11495) sorbet-static (= 0.5.11500)
sorbet-runtime (0.5.11495) sorbet-runtime (0.5.11500)
sorbet-static (0.5.11495-aarch64-linux) sorbet-static (0.5.11500-aarch64-linux)
sorbet-static (0.5.11495-universal-darwin) sorbet-static (0.5.11500-universal-darwin)
sorbet-static (0.5.11495-x86_64-linux) sorbet-static (0.5.11500-x86_64-linux)
sorbet-static-and-runtime (0.5.11495) sorbet-static-and-runtime (0.5.11500)
sorbet (= 0.5.11495) sorbet (= 0.5.11500)
sorbet-runtime (= 0.5.11495) sorbet-runtime (= 0.5.11500)
spoom (1.4.2) spoom (1.4.2)
erubi (>= 1.10.0) erubi (>= 1.10.0)
prism (>= 0.28.0) prism (>= 0.28.0)
@ -148,6 +148,7 @@ GEM
PLATFORMS PLATFORMS
aarch64-linux aarch64-linux
arm-linux
arm64-darwin arm64-darwin
x86_64-darwin x86_64-darwin
x86_64-linux x86_64-linux

View File

@ -1004,7 +1004,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
prop :strong, ::String prop :strong, ::String
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -1344,7 +1344,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct
sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
def from_obj(obj); end def from_obj(obj); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -1480,7 +1480,7 @@ class Spoom::Deadcode::Definition < ::T::Struct
def to_json(*args); end def to_json(*args); end
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2031,18 +2031,15 @@ end
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7
class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#26 # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#22
sig { override.params(definition: ::Spoom::Model::Method).void } sig { override.params(definition: ::Spoom::Model::Method).void }
def on_define_method(definition); end def on_define_method(definition); end
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#36 # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28
sig { override.params(send: ::Spoom::Deadcode::Send).void } sig { override.params(send: ::Spoom::Deadcode::Send).void }
def on_send(send); end def on_send(send); end
end end
# source://spoom//lib/spoom/deadcode/plugins/minitest.rb#13
Spoom::Deadcode::Plugins::Minitest::MINITEST_METHODS = T.let(T.unsafe(nil), Set)
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7
class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base
# source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11 # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#11
@ -2371,7 +2368,7 @@ class Spoom::Deadcode::Send < ::T::Struct
def each_arg_assoc(&block); end def each_arg_assoc(&block); end
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2391,7 +2388,7 @@ class Spoom::ExecResult < ::T::Struct
def to_s; end def to_s; end
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2589,7 +2586,7 @@ class Spoom::FileTree::Node < ::T::Struct
def path; end def path; end
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2655,7 +2652,7 @@ class Spoom::Git::Commit < ::T::Struct
def timestamp; end def timestamp; end
class << self class << self
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
# Parse a line formatted as `%h %at` into a `Commit` # Parse a line formatted as `%h %at` into a `Commit`
@ -2767,7 +2764,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2800,7 +2797,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2858,7 +2855,7 @@ class Spoom::LSP::Hover < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2883,7 +2880,7 @@ class Spoom::LSP::Location < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2946,7 +2943,7 @@ class Spoom::LSP::Position < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -2984,7 +2981,7 @@ class Spoom::LSP::Range < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -3050,7 +3047,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
def from_json(json); end def from_json(json); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
end end
end end
@ -3476,7 +3473,7 @@ class Spoom::Model::Reference < ::T::Struct
sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) }
def constant(name, location); end def constant(name, location); end
# source://sorbet-runtime/0.5.11495/lib/types/struct.rb#13 # source://sorbet-runtime/0.5.11500/lib/types/struct.rb#13
def inherited(s); end def inherited(s); end
# source://spoom//lib/spoom/model/reference.rb#29 # source://spoom//lib/spoom/model/reference.rb#29

View File

@ -67,7 +67,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/racc-1.8.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parser-3.3.4.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11495/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11500/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-9.0.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parlour-9.0.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/patchelf-1.5.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib")
@ -101,11 +101,11 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov_json_formatter-0.1.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov_json_formatter-0.1.4/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-0.22.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-0.22.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-cobertura-2.1.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/simplecov-cobertura-2.1.0/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11495-universal-darwin/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.11500-universal-darwin/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11495/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.11500/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11495/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.11500/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.1/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.4.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.4.2/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.26")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.26/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.26/lib")
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.36/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/yard-0.9.36/lib")

View File

@ -21,7 +21,7 @@ module T::Types
valid?(obj) valid?(obj)
end end
def valid?(obj) define_method(:valid?) do |_obj|
raise NotImplementedError raise NotImplementedError
end end
@ -35,12 +35,12 @@ module T::Types
# Force any lazy initialization that this type might need to do # Force any lazy initialization that this type might need to do
# It's unusual to call this directly; you probably want to call it indirectly via `T::Utils.run_all_sig_blocks`. # It's unusual to call this directly; you probably want to call it indirectly via `T::Utils.run_all_sig_blocks`.
def build_type define_method(:build_type) do
raise NotImplementedError raise NotImplementedError
end end
# Equality is based on name, so be sure the name reflects all relevant state when implementing. # Equality is based on name, so be sure the name reflects all relevant state when implementing.
def name define_method(:name) do
raise NotImplementedError raise NotImplementedError
end end

View File

@ -21,7 +21,7 @@ module T::Types
# overrides Base # overrides Base
def valid?(obj) def valid?(obj)
obj.is_a?(Module) && obj <= @type obj.is_a?(Module) && (obj <= @type || false)
end end
# overrides Base # overrides Base

View File

@ -51,7 +51,7 @@ module T::Types
return false return false
end end
arg_types.values.zip(other.arg_types.values).all? do |a, b| arg_types.values.zip(other.arg_types.values).all? do |a, b|
b.subtype_of?(a) !b.nil? && b.subtype_of?(a)
end && returns.subtype_of?(other.returns) end && returns.subtype_of?(other.returns)
else else
false false

View File

@ -53,7 +53,7 @@ module T::Types
class Untyped < TypedArray class Untyped < TypedArray
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -71,7 +71,7 @@ module T::Types
class Untyped < TypedClass class Untyped < TypedClass
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def freeze def freeze

View File

@ -47,11 +47,10 @@ module T::Types
true true
end end
when Hash when Hash
return false unless type.is_a?(FixedArray) type_ = self.type
types = type.types return false unless type_.is_a?(FixedArray)
return false if types.count != 2 key_type, value_type = type_.types
key_type = types[0] return false if key_type.nil? || value_type.nil? || type_.types.size > 2
value_type = types[1]
obj.each_pair do |key, val| obj.each_pair do |key, val|
# Some objects (I'm looking at you Rack::Utils::HeaderHash) don't # Some objects (I'm looking at you Rack::Utils::HeaderHash) don't
# iterate over a [key, value] array, so we can't just use the type.recursively_valid?(v) # iterate over a [key, value] array, so we can't just use the type.recursively_valid?(v)
@ -179,7 +178,7 @@ module T::Types
class Untyped < TypedEnumerable class Untyped < TypedEnumerable
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -28,7 +28,7 @@ module T::Types
class Untyped < TypedEnumerator class Untyped < TypedEnumerator
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -28,7 +28,7 @@ module T::Types
class Untyped < TypedEnumeratorChain class Untyped < TypedEnumeratorChain
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -28,7 +28,7 @@ module T::Types
class Untyped < TypedEnumeratorLazy class Untyped < TypedEnumeratorLazy
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -4,7 +4,7 @@
module T::Types module T::Types
class TypedRange < TypedEnumerable class TypedRange < TypedEnumerable
def underlying_class def underlying_class
Hash Range
end end
# overrides Base # overrides Base

View File

@ -4,7 +4,7 @@
module T::Types module T::Types
class TypedSet < TypedEnumerable class TypedSet < TypedEnumerable
def underlying_class def underlying_class
Hash Set
end end
# overrides Base # overrides Base
@ -37,7 +37,7 @@ module T::Types
class Untyped < TypedSet class Untyped < TypedSet
def initialize def initialize
super(T.untyped) super(T::Types::Untyped::Private::INSTANCE)
end end
def valid?(obj) def valid?(obj)

View File

@ -155,7 +155,7 @@ module T::Utils
raise ArgumentError.new("#{enum.inspect} is not a T.deprecated_enum") raise ArgumentError.new("#{enum.inspect} is not a T.deprecated_enum")
end end
classes = enum.values.map(&:class).uniq classes = T.unsafe(enum.values).map(&:class).uniq
if classes.empty? if classes.empty?
T.untyped T.untyped
elsif classes.length > 1 elsif classes.length > 1