Merge pull request #18042 from Homebrew/download-typed-strict

This commit is contained in:
Patrick Linnane 2024-08-13 12:36:59 -06:00 committed by GitHub
commit 79d887afa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
# typed: true # rubocop:todo Sorbet/StrictSigil # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
require "downloadable" require "downloadable"
@ -23,7 +23,7 @@ module Homebrew
} }
def initialize(url, checksum, mirrors: [], cache: nil) def initialize(url, checksum, mirrors: [], cache: nil)
super() super()
@url = URL.new(url, using: API::DownloadStrategy) @url = T.let(URL.new(url, using: API::DownloadStrategy), URL)
@checksum = checksum @checksum = checksum
@mirrors = mirrors @mirrors = mirrors
@cache = cache @cache = cache