From c62ee6be6c4a5d7b907c72f291e5f8aefc36b1db Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sat, 10 Aug 2024 00:20:30 +0100 Subject: [PATCH] extend/os/mac/utils/bottles: Bump to Sorbet `typed: strict` --- Library/Homebrew/extend/os/mac/utils/bottles.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/mac/utils/bottles.rb b/Library/Homebrew/extend/os/mac/utils/bottles.rb index a06d0db5da..754aeaec64 100644 --- a/Library/Homebrew/extend/os/mac/utils/bottles.rb +++ b/Library/Homebrew/extend/os/mac/utils/bottles.rb @@ -1,4 +1,4 @@ -# typed: true +# typed: strict # frozen_string_literal: true module Utils @@ -21,6 +21,7 @@ module Utils alias generic_find_matching_tag find_matching_tag + sig { params(tag: Utils::Bottles::Tag, no_older_versions: T::Boolean).returns(T.nilable(Utils::Bottles::Tag)) } def find_matching_tag(tag, no_older_versions: false) # Used primarily by developers testing beta macOS releases. if no_older_versions || @@ -35,6 +36,7 @@ module Utils end # Find a bottle built for a previous version of macOS. + sig { params(tag: Utils::Bottles::Tag).returns(T.nilable(Utils::Bottles::Tag)) } def find_older_compatible_tag(tag) tag_version = begin tag.to_macos_version