Skip to content

Commit

Permalink
env_config: appease sorbet errors
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Sep 15, 2022
1 parent eb5312f commit 9b527a4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Library/Homebrew/env_config.rb
Expand Up @@ -482,6 +482,16 @@ def cask_opts_require_sha?
cask_opts.include?("--require-sha")
end

sig { returns(String) }
def pip_index_url
ENV["HOMEBREW_PIP_INDEX_URL"].to_s
end

sig { returns(String) }
def pip_extra_index_url
ENV["HOMEBREW_PIP_EXTRA_INDEX_URL"].to_s
end

sig { returns(T::Array[String]) }
def pip_index_urls
"#{pip_index_url} #{pip_extra_index_url}".split.map { |url| url.chomp("/") }.uniq
Expand Down

0 comments on commit 9b527a4

Please sign in to comment.