software_spec: fix type signatures
Fixes Error: Parameter 'tag': Expected type T.nilable(Utils::Bottles::Tag), got type Symbol with value :arm64_sequoia https://github.com/Homebrew/homebrew-core/actions/runs/16998107196/job/48193586673#step:5:45
This commit is contained in:
parent
4910ac215e
commit
72431f5ad6
@ -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