Merge pull request #7764 from vidusheeamoli/resolve-srb-errors
Resolve errors reported by Sorbet
This commit is contained in:
commit
624efee174
1
.gitignore
vendored
1
.gitignore
vendored
@ -19,6 +19,7 @@
|
|||||||
/Library/Taps
|
/Library/Taps
|
||||||
/Library/PinnedTaps
|
/Library/PinnedTaps
|
||||||
/Library/Homebrew/.byebug_history
|
/Library/Homebrew/.byebug_history
|
||||||
|
/Library/Homebrew/sorbet/rbi/hidden-definitions/errors.txt
|
||||||
|
|
||||||
# Ignore Bundler files
|
# Ignore Bundler files
|
||||||
**/.bundle/bin
|
**/.bundle/bin
|
||||||
|
|||||||
@ -1,87 +0,0 @@
|
|||||||
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
|
||||||
# tapioca sync
|
|
||||||
|
|
||||||
# typed: true
|
|
||||||
|
|
||||||
class Class < ::Module
|
|
||||||
def json_creatable?; end
|
|
||||||
end
|
|
||||||
|
|
||||||
module JSON
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def dump(obj, anIO = _, limit = _); end
|
|
||||||
def fast_generate(obj, opts = _); end
|
|
||||||
def fast_unparse(obj, opts = _); end
|
|
||||||
def generate(obj, opts = _); end
|
|
||||||
def load(source, proc = _, options = _); end
|
|
||||||
def parse(source, opts = _); end
|
|
||||||
def parse!(source, opts = _); end
|
|
||||||
def pretty_generate(obj, opts = _); end
|
|
||||||
def pretty_unparse(obj, opts = _); end
|
|
||||||
def recurse_proc(result, &proc); end
|
|
||||||
def restore(source, proc = _, options = _); end
|
|
||||||
def unparse(obj, opts = _); end
|
|
||||||
|
|
||||||
def self.[](object, opts = _); end
|
|
||||||
def self.create_id; end
|
|
||||||
def self.create_id=(_); end
|
|
||||||
def self.deep_const_get(path); end
|
|
||||||
def self.dump(obj, anIO = _, limit = _); end
|
|
||||||
def self.dump_default_options; end
|
|
||||||
def self.dump_default_options=(_); end
|
|
||||||
def self.fast_generate(obj, opts = _); end
|
|
||||||
def self.fast_unparse(obj, opts = _); end
|
|
||||||
def self.generate(obj, opts = _); end
|
|
||||||
def self.generator; end
|
|
||||||
def self.generator=(generator); end
|
|
||||||
def self.iconv(to, from, string); end
|
|
||||||
def self.load(source, proc = _, options = _); end
|
|
||||||
def self.load_default_options; end
|
|
||||||
def self.load_default_options=(_); end
|
|
||||||
def self.parse(source, opts = _); end
|
|
||||||
def self.parse!(source, opts = _); end
|
|
||||||
def self.parser; end
|
|
||||||
def self.parser=(parser); end
|
|
||||||
def self.pretty_generate(obj, opts = _); end
|
|
||||||
def self.pretty_unparse(obj, opts = _); end
|
|
||||||
def self.recurse_proc(result, &proc); end
|
|
||||||
def self.restore(source, proc = _, options = _); end
|
|
||||||
def self.state; end
|
|
||||||
def self.state=(_); end
|
|
||||||
def self.unparse(obj, opts = _); end
|
|
||||||
end
|
|
||||||
|
|
||||||
class JSON::GenericObject < ::OpenStruct
|
|
||||||
def as_json(*_); end
|
|
||||||
def to_hash; end
|
|
||||||
def to_json(*a); end
|
|
||||||
def |(other); end
|
|
||||||
|
|
||||||
def self.dump(obj, *args); end
|
|
||||||
def self.from_hash(object); end
|
|
||||||
def self.json_creatable=(_); end
|
|
||||||
def self.json_creatable?; end
|
|
||||||
def self.json_create(data); end
|
|
||||||
def self.load(source, proc = _, opts = _); end
|
|
||||||
end
|
|
||||||
|
|
||||||
class JSON::JSONError < ::StandardError
|
|
||||||
def self.wrap(exception); end
|
|
||||||
end
|
|
||||||
|
|
||||||
JSON::Parser = JSON::Ext::Parser
|
|
||||||
|
|
||||||
JSON::State = JSON::Ext::Generator::State
|
|
||||||
|
|
||||||
JSON::UnparserError = JSON::GeneratorError
|
|
||||||
|
|
||||||
module Kernel
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def JSON(object, *args); end
|
|
||||||
def j(*objs); end
|
|
||||||
def jj(*objs); end
|
|
||||||
end
|
|
||||||
File diff suppressed because it is too large
Load Diff
@ -5854,6 +5854,8 @@ class Class
|
|||||||
def any_instance(); end
|
def any_instance(); end
|
||||||
|
|
||||||
def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end
|
def class_attribute(*attrs, instance_accessor: T.unsafe(nil), instance_reader: T.unsafe(nil), instance_writer: T.unsafe(nil), instance_predicate: T.unsafe(nil), default: T.unsafe(nil)); end
|
||||||
|
|
||||||
|
def json_creatable?(); end
|
||||||
end
|
end
|
||||||
|
|
||||||
module CodeRay
|
module CodeRay
|
||||||
@ -10311,6 +10313,12 @@ class JSON::Ext::Parser
|
|||||||
def initialize(*_); end
|
def initialize(*_); end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
JSON::Parser = JSON::Ext::Parser
|
||||||
|
|
||||||
|
JSON::State = JSON::Ext::Generator::State
|
||||||
|
|
||||||
|
JSON::UnparserError = JSON::GeneratorError
|
||||||
|
|
||||||
class JavaRequirement::CaskSuggestion
|
class JavaRequirement::CaskSuggestion
|
||||||
def self.[](*_); end
|
def self.[](*_); end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user