Add missing sigs

This commit is contained in:
Douglas Eichelberger 2024-08-15 08:18:31 -07:00
parent 70b072a7d0
commit df2fcfdfb0
4 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,7 @@ module Homebrew
class Cleanup
undef use_system_ruby?
sig { returns(T::Boolean) }
def use_system_ruby?
return false if Homebrew::EnvConfig.force_vendor_ruby?

View File

@ -1,10 +1,11 @@
# typed: true # rubocop:disable Sorbet/StrictSigil
# typed: strict
# frozen_string_literal: true
module Homebrew
class Cleanup
undef use_system_ruby?
sig { returns(T::Boolean) }
def use_system_ruby?
return false if Homebrew::EnvConfig.force_vendor_ruby?

View File

@ -6,6 +6,7 @@ class LinkageChecker
private
sig { returns(T::Boolean) }
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.
MacOS.version >= :big_sur

View File

@ -32,7 +32,7 @@ module Tapioca
def decorate
cmd = T.cast(constant, T.class_of(Homebrew::AbstractCommand))
# 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)
root.create_class(args_class_name, superclass_name: "Homebrew::CLI::Args") do |klass|