Skip to content

Commit

Permalink
Fix leftover errors for Dependencies vs. T::Array[Dependency]
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Oct 5, 2024
1 parent d2c6aa1 commit 5549714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/formula_cellar_checks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def check_elisp_root(share, name)
EOS
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)
return unless lib.directory?

Expand All @@ -209,6 +209,7 @@ def check_python_packages(lib, deps)

return if pythons.blank?

deps = T.cast(deps, T::Array[Dependency])
python_deps = deps.map(&:name)
.grep(/^python(@.*)?$/)
.filter_map { |d| Formula[d].version.to_s[/^\d+\.\d+/] }
Expand Down

0 comments on commit 5549714

Please sign in to comment.