Fix leftover errors for Dependencies vs. T::Array[Dependency]
This commit is contained in:
parent
28349370d3
commit
d1892d436a
@ -39,6 +39,11 @@ class Dependencies < SimpleDelegator
|
|||||||
def inspect
|
def inspect
|
||||||
"#<#{self.class.name}: #{__getobj__}>"
|
"#<#{self.class.name}: #{__getobj__}>"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { returns(T::Array[Dependency]) }
|
||||||
|
def to_a
|
||||||
|
__getobj__.to_a
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# A collection of requirements.
|
# A collection of requirements.
|
||||||
|
|||||||
@ -191,7 +191,7 @@ module FormulaCellarChecks
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(lib: Pathname, deps: T::Array[Dependency]).returns(T.nilable(String)) }
|
sig { params(lib: Pathname, deps: Dependencies).returns(T.nilable(String)) }
|
||||||
def check_python_packages(lib, deps)
|
def check_python_packages(lib, deps)
|
||||||
return unless lib.directory?
|
return unless lib.directory?
|
||||||
|
|
||||||
@ -209,7 +209,8 @@ module FormulaCellarChecks
|
|||||||
|
|
||||||
return if pythons.blank?
|
return if pythons.blank?
|
||||||
|
|
||||||
python_deps = deps.map(&:name)
|
python_deps = deps.to_a
|
||||||
|
.map(&:name)
|
||||||
.grep(/^python(@.*)?$/)
|
.grep(/^python(@.*)?$/)
|
||||||
.filter_map { |d| Formula[d].version.to_s[/^\d+\.\d+/] }
|
.filter_map { |d| Formula[d].version.to_s[/^\d+\.\d+/] }
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user