Update Sorbet RBI files

This commit is contained in:
Bo Anderson 2022-09-08 01:40:44 +01:00
parent 987abe7773
commit 594a38bfe1
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
14 changed files with 763 additions and 854 deletions

View File

@ -220,6 +220,7 @@ class Addressable::URI
protected
def force_utf8_encoding_if_needed(str); end
def remove_composite_values; end
def replace_self(uri); end
def split_path(path); end

View File

@ -51,10 +51,12 @@ class Bootsnap::InvalidConfiguration < ::StandardError; end
module Bootsnap::LoadPathCache
class << self
def enabled?; end
def load_path_cache; end
def loaded_features_index; end
def setup(cache_path:, development_mode:); end
def supported?; end
def unload!; end
end
end
@ -63,7 +65,7 @@ Bootsnap::LoadPathCache::CACHED_EXTENSIONS = T.let(T.unsafe(nil), Array)
class Bootsnap::LoadPathCache::Cache
def initialize(store, path_obj, development_mode: T.unsafe(nil)); end
def find(feature, try_extensions: T.unsafe(nil)); end
def find(feature); end
def load_dir(dir); end
def push_paths(sender, *paths); end
def reinitialize(path_obj = T.unsafe(nil)); end
@ -76,7 +78,7 @@ class Bootsnap::LoadPathCache::Cache
def maybe_append_extension(feature); end
def now; end
def push_paths_locked(*paths); end
def search_index(feature, try_extensions: T.unsafe(nil)); end
def search_index(feature); end
def stale?; end
def try_ext(feature); end
def try_index(feature); end
@ -88,7 +90,8 @@ Bootsnap::LoadPathCache::Cache::BUILTIN_FEATURES = T.let(T.unsafe(nil), Hash)
module Bootsnap::LoadPathCache::ChangeObserver
class << self
def register(observer, arr); end
def register(arr, observer); end
def unregister(arr); end
end
end

View File

@ -1288,6 +1288,7 @@ class Nokogiri::XML::Reader
def attribute(_arg0); end
def attribute_at(_arg0); end
def attribute_count; end
def attribute_hash; end
def attribute_nodes; end
def attributes; end
def attributes?; end

View File

@ -1430,6 +1430,7 @@ end
class Parser::Source::Range
include ::Comparable
include ::RuboCop::AST::Ext::Range
include ::RuboCop::Ext::Range
def initialize(source_buffer, begin_pos, end_pos); end

View File

@ -1679,6 +1679,7 @@ class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node
def delimiter?(char); end
def delimiters; end
def extended?; end
def fixed_encoding?; end
def ignore_case?; end
def interpolation?; end
def multiline_mode?; end
@ -1771,6 +1772,7 @@ class RuboCop::AST::Token
def column; end
def comma?; end
def comment?; end
def dot?; end
def end?; end
def end_pos; end
def equal_sign?; end

View File

@ -1,8 +0,0 @@
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `sorbet-runtime-stub` gem.
# Please instead update this file by running `bin/tapioca gem sorbet-runtime-stub`.
# THIS IS AN EMPTY RBI FILE.
# see https://github.com/Shopify/tapioca/wiki/Manual-Gem-Requires

View File

@ -151,8 +151,8 @@ RBI::VERSION = T.let(T.unsafe(nil), String)
module T::Generic::TypeStoragePatch
def [](*types); end
def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &blk); end
def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &blk); end
def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
end
module T::Types::Simple::GenericPatch
@ -1678,10 +1678,11 @@ class Tapioca::TypeVariableModule < ::Module
variance: ::Symbol,
fixed: T.untyped,
lower: T.untyped,
upper: T.untyped
upper: T.untyped,
bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped]))
).void
end
def initialize(context, type, variance, fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end
def initialize(context, type, variance, fixed, lower, upper, bounds_proc); end
sig { returns(::Tapioca::TypeVariable) }
def coerce_to_type_variable; end
@ -1694,6 +1695,15 @@ class Tapioca::TypeVariableModule < ::Module
private
sig do
params(
fixed: T.untyped,
lower: T.untyped,
upper: T.untyped
).returns(T.proc.returns(T::Hash[::Symbol, T.untyped]))
end
def build_bounds_proc(fixed, lower, upper); end
sig do
type_parameters(:Result)
.params(

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,9 @@ module Debrew
end
class Formula
sig { returns(T::Boolean) }
def self.on_system_blocks_exist?; end
sig { params(arg: T.untyped).returns(T.untyped) }
def self.desc(arg = T.unsafe(nil)); end
@ -68,6 +71,9 @@ class FormulaInstaller
sig { returns(T::Boolean) }
def keep_tmp?; end
sig { returns(T::Boolean) }
def debug_symbols?; end
sig { returns(T::Boolean) }
def verbose?; end
@ -122,6 +128,9 @@ module Cask
sig { returns(T::Boolean) }
def strict?; end
sig { returns(T::Boolean) }
def signing?; end
sig { returns(T::Boolean) }
def online?; end