Merge pull request #20477 from Homebrew/fix-software_spec-sigs

software_spec: fix type signatures
This commit is contained in:
Carlo Cabrera 2025-08-15 20:34:47 +00:00 committed by GitHub
commit d5abe49172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)