mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cask/url: accept Class for using in Cask::URL#initialize
https://github.com/Homebrew/brew/pull/15754 fixed `Cask::URL::DSL#initialize`, but we also need to fix `Cask::URL#initialize` as that takes the same parameters. Error: ``` Error: Cask 'mycask' definition is invalid: 'url' stanza failed with: Parameter 'using': Expected type T.nilable(Symbol), got type Class with value MyCustomDownloadStrategy Caller: /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/sorbet-runtime-0.5.10461/lib/types/private/methods/call_validation.rb:113 ``` Refs: https://github.com/Homebrew/brew/issues/15750
This commit is contained in:
parent
b53508897b
commit
b4feaf27d9
@ -148,7 +148,7 @@ module Cask
|
||||
params(
|
||||
uri: T.nilable(T.any(URI::Generic, String)),
|
||||
verified: T.nilable(String),
|
||||
using: T.nilable(Symbol),
|
||||
using: T.any(Class, Symbol, NilClass),
|
||||
tag: T.nilable(String),
|
||||
branch: T.nilable(String),
|
||||
revisions: T.nilable(T::Array[String]),
|
||||
|
Loading…
x
Reference in New Issue
Block a user