cask/dsl/depends_on: fix type signature

This commit is contained in:
Bo Anderson 2022-11-01 20:49:16 +00:00 committed by GitHub
parent f5c6667980
commit 31e97ca500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ module Cask
@cask.concat(args) @cask.concat(args)
end end
sig { params(args: String).returns(T.nilable(MacOSRequirement)) } sig { params(args: T.any(String, Symbol)).returns(T.nilable(MacOSRequirement)) }
def macos=(*args) def macos=(*args)
raise "Only a single 'depends_on macos' is allowed." if defined?(@macos) raise "Only a single 'depends_on macos' is allowed." if defined?(@macos)