From dab036dc235128c3ffc6c19920a887d65e85c8aa Mon Sep 17 00:00:00 2001 From: Issy Long Date: Wed, 21 Aug 2024 21:53:31 +0100 Subject: [PATCH 1/3] cmd/check-ci-status: Bump to Sorbet `typed: true` --- cmd/check-ci-status.rb | 1 + cmd/check-ci-status.rbi | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 cmd/check-ci-status.rbi diff --git a/cmd/check-ci-status.rb b/cmd/check-ci-status.rb index c3338353f16b6..965311477254d 100755 --- a/cmd/check-ci-status.rb +++ b/cmd/check-ci-status.rb @@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "abstract_command" diff --git a/cmd/check-ci-status.rbi b/cmd/check-ci-status.rbi new file mode 100644 index 0000000000000..131ecf76598a3 --- /dev/null +++ b/cmd/check-ci-status.rbi @@ -0,0 +1,14 @@ +# typed: strict + +class Homebrew::Cmd::CheckCiStatusCmd + sig { returns(Homebrew::Cmd::CheckCiStatusCmd::Args) } + def args; end +end + +class Homebrew::Cmd::CheckCiStatusCmd::Args < Homebrew::CLI::Args + sig { returns(T::Boolean) } + def cancel?; end + + sig { returns(T::Boolean) } + def long_timeout_label?; end +end From 7260901ed9558f9b3492ab22122a792b8a6b0c2a Mon Sep 17 00:00:00 2001 From: Issy Long Date: Wed, 21 Aug 2024 21:54:18 +0100 Subject: [PATCH 2/3] cmd/determine-rebottle-runners: Bump to Sorbet `typed: strict` --- cmd/determine-rebottle-runners.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/determine-rebottle-runners.rb b/cmd/determine-rebottle-runners.rb index 708bfd35bcf9d..cda069a737366 100755 --- a/cmd/determine-rebottle-runners.rb +++ b/cmd/determine-rebottle-runners.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "abstract_command" @@ -18,6 +19,7 @@ class DetermineRebottleRunnersCmd < AbstractCommand hide_from_man_page! end + sig { override.void } def run formula = Formula[args.named.first] timeout = args.named.second.to_i From 582799c7f21166dd0cda51c8cd11e48e15173973 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Wed, 21 Aug 2024 21:54:31 +0100 Subject: [PATCH 3/3] cmd/aspell-dictionaries: Bump to Sorbet `typed: strict` --- cmd/aspell-dictionaries.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/aspell-dictionaries.rb b/cmd/aspell-dictionaries.rb index 2f5a1fb74d22f..bb69a285ef7bb 100755 --- a/cmd/aspell-dictionaries.rb +++ b/cmd/aspell-dictionaries.rb @@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "abstract_command" @@ -15,6 +16,7 @@ class AspellDictionariesCmd < AbstractCommand EOS end + sig { override.void } def run dictionary_url = "https://ftp.gnu.org/gnu/aspell/dict" dictionary_mirror = "https://ftpmirror.gnu.org/aspell/dict"