Merge pull request #9221 from jonchang/fix-formula-installer-type
Fix some type errors
This commit is contained in:
commit
bbfcd30ce3
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user