Merge pull request #9221 from jonchang/fix-formula-installer-type

Fix some type errors
This commit is contained in:
Markus Reiter 2020-11-20 13:05:27 +01:00 committed by GitHub
commit bbfcd30ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -654,7 +654,7 @@ class FormulaInstaller
@show_header = true unless deps.empty?
end
sig { params(dep: Formula).void }
sig { params(dep: Dependency).void }
def fetch_dependency(dep)
df = dep.to_formula
fi = FormulaInstaller.new(
@ -675,7 +675,7 @@ class FormulaInstaller
fi.fetch
end
sig { params(dep: Formula, inherited_options: Options).void }
sig { params(dep: Dependency, inherited_options: Options).void }
def install_dependency(dep, inherited_options)
df = dep.to_formula
tab = Tab.for_formula(df)

View File

@ -10,7 +10,7 @@ module Homebrew
attr_reader :name, :path, :tap_audit_exceptions, :problems
sig { params(tap: Tap, strict: T::Boolean).void }
sig { params(tap: Tap, strict: T.nilable(T::Boolean)).void }
def initialize(tap, strict:)
@name = tap.name
@path = tap.path