download: use typed: strict

Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
Patrick Linnane 2024-08-13 12:23:33 -06:00
parent b8051674ae
commit 31df4cff73
No known key found for this signature in database

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