Skip to content

Commit

Permalink
Extend Module when requiring sorbet
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Jan 10, 2024
1 parent 0b67e37 commit b76155c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 0 additions & 6 deletions Library/Homebrew/extend/module.rb

This file was deleted.

1 change: 0 additions & 1 deletion Library/Homebrew/global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
%r[https://github\.com/([\w-]+)/([\w-]+)?/(?:pull/(\d+)|commit/[0-9a-fA-F]{4,40})].freeze
HOMEBREW_BOTTLES_EXTNAME_REGEX = /\.([a-z0-9_]+)\.bottle\.(?:(\d+)\.)?tar\.gz$/.freeze

require "extend/module"
require "extend/array"
require "extend/blank"
require "env_config"
Expand Down
5 changes: 5 additions & 0 deletions Library/Homebrew/standalone/sorbet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ def sig(arg0 = nil, &blk); end
T::Configuration.call_validation_error_handler = ->(signature, opts) {}
T::Configuration.inline_type_error_handler = ->(error, opts) {}
end

class Module
# Allow `sig` everywhere.
include T::Sig
end

0 comments on commit b76155c

Please sign in to comment.