diff --git a/Library/Homebrew/download_strategy.rbi b/Library/Homebrew/download_strategy.rbi index 332786054d..4fe282238f 100644 --- a/Library/Homebrew/download_strategy.rbi +++ b/Library/Homebrew/download_strategy.rbi @@ -1,6 +1,18 @@ # typed: strict module AbstractDownloadStrategy::Pourable - include Kernel requires_ancestor { AbstractDownloadStrategy } end + +class Mechanize::HTTP + ContentDisposition = Struct.new :type, :filename, :creation_date, + :modification_date, :read_date, :size, :parameters +end + +class Mechanize::HTTP::ContentDispositionParser + sig { + params(content_disposition: String, header: T::Boolean) + .returns(T.nilable(Mechanize::HTTP::ContentDisposition)) + } + def parse(content_disposition, header = false); end +end