Add missing sigs
This commit is contained in:
parent
70b072a7d0
commit
df2fcfdfb0
@ -5,6 +5,7 @@ module Homebrew
|
|||||||
class Cleanup
|
class Cleanup
|
||||||
undef use_system_ruby?
|
undef use_system_ruby?
|
||||||
|
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
def use_system_ruby?
|
def use_system_ruby?
|
||||||
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,11 @@
|
|||||||
# typed: true # rubocop:disable Sorbet/StrictSigil
|
# typed: strict
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
class Cleanup
|
class Cleanup
|
||||||
undef use_system_ruby?
|
undef use_system_ruby?
|
||||||
|
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
def use_system_ruby?
|
def use_system_ruby?
|
||||||
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
return false if Homebrew::EnvConfig.force_vendor_ruby?
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ class LinkageChecker
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
sig { returns(T::Boolean) }
|
||||||
def system_libraries_exist_in_cache?
|
def system_libraries_exist_in_cache?
|
||||||
# In macOS Big Sur and later, system libraries do not exist on-disk and instead exist in a cache.
|
# In macOS Big Sur and later, system libraries do not exist on-disk and instead exist in a cache.
|
||||||
MacOS.version >= :big_sur
|
MacOS.version >= :big_sur
|
||||||
|
|||||||
@ -32,7 +32,7 @@ module Tapioca
|
|||||||
def decorate
|
def decorate
|
||||||
cmd = T.cast(constant, T.class_of(Homebrew::AbstractCommand))
|
cmd = T.cast(constant, T.class_of(Homebrew::AbstractCommand))
|
||||||
# This is a dummy class to make the `brew` command parsable
|
# This is a dummy class to make the `brew` command parsable
|
||||||
return if cmd.name == "Homebrew::Cmd::Brew"
|
return if cmd == Homebrew::Cmd::Brew
|
||||||
|
|
||||||
args_class_name = T.must(T.must(cmd.args_class).name)
|
args_class_name = T.must(T.must(cmd.args_class).name)
|
||||||
root.create_class(args_class_name, superclass_name: "Homebrew::CLI::Args") do |klass|
|
root.create_class(args_class_name, superclass_name: "Homebrew::CLI::Args") do |klass|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user