Skip to content

Commit

Permalink
Add missing sigs
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Aug 15, 2024
1 parent 70b072a commit df2fcfd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/extend/os/linux/cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
3 changes: 2 additions & 1 deletion Library/Homebrew/extend/os/mac/cleanup.rb
Original file line number Diff line number Diff line change
@@ -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?

Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/extend/os/mac/linkage_checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/sorbet/tapioca/compilers/args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.gather_constants
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|
Expand Down

0 comments on commit df2fcfd

Please sign in to comment.