diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 86bdc0d6ed..b46458de22 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -2695,6 +2695,7 @@ class Formula # The methods below define the formula DSL. class << self extend Predicable + extend T::Sig include BuildEnvironment::DSL include OnSystem::MacOSAndLinux @@ -2903,8 +2904,9 @@ class Formula # # Formulae which should not be bottled should be tagged with: #
bottle :disable, "reasons"- def bottle(*args, &block) - stable.bottle(*args, &block) + sig { params(block: T.proc.bind(BottleSpecification).void).void } + def bottle(&block) + stable.bottle(&block) end # @private