Merge pull request #15805 from ZhongRuoyu/formulary-alias_path

formulary: fix type of `alias_path`
This commit is contained in:
Mike McQuaid 2023-08-04 08:10:57 +01:00 committed by GitHub
commit 11af9e8a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,7 +779,7 @@ module Formulary
rack: Pathname, rack: Pathname,
# Automatically resolves the formula's spec if not specified. # Automatically resolves the formula's spec if not specified.
spec: Symbol, spec: Symbol,
alias_path: Pathname, alias_path: T.any(Pathname, String),
force_bottle: T::Boolean, force_bottle: T::Boolean,
flags: T::Array[String], flags: T::Array[String],
).returns(Formula) ).returns(Formula)
@ -819,7 +819,7 @@ module Formulary
keg: Keg, keg: Keg,
# Automatically resolves the formula's spec if not specified. # Automatically resolves the formula's spec if not specified.
spec: Symbol, spec: Symbol,
alias_path: Pathname, alias_path: T.any(Pathname, String),
force_bottle: T::Boolean, force_bottle: T::Boolean,
flags: T::Array[String], flags: T::Array[String],
).returns(Formula) ).returns(Formula)