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?
|
!bottle_specification.collector.tags.empty?
|
||||||
end
|
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)
|
def bottle_tag?(tag = nil)
|
||||||
bottle_specification.tag?(Utils::Bottles.tag(tag))
|
bottle_specification.tag?(Utils::Bottles.tag(tag))
|
||||||
end
|
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)
|
def bottled?(tag = nil)
|
||||||
return false unless bottle_tag?(tag)
|
return false unless bottle_tag?(tag)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user