Merge pull request #20477 from Homebrew/fix-software_spec-sigs
software_spec: fix type signatures
This commit is contained in:
commit
d5abe49172
@ -152,12 +152,12 @@ class SoftwareSpec
|
||||
!bottle_specification.collector.tags.empty?
|
||||
end
|
||||
|
||||
sig { params(tag: T.nilable(Utils::Bottles::Tag)).returns(T::Boolean) }
|
||||
sig { params(tag: T.nilable(T.any(Utils::Bottles::Tag, Symbol))).returns(T::Boolean) }
|
||||
def bottle_tag?(tag = nil)
|
||||
bottle_specification.tag?(Utils::Bottles.tag(tag))
|
||||
end
|
||||
|
||||
sig { params(tag: T.nilable(Utils::Bottles::Tag)).returns(T::Boolean) }
|
||||
sig { params(tag: T.nilable(T.any(Utils::Bottles::Tag, Symbol))).returns(T::Boolean) }
|
||||
def bottled?(tag = nil)
|
||||
return false unless bottle_tag?(tag)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user