From 030980164d5a18fb3bb2294356a159d1c41aa97a Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Wed, 6 Mar 2024 11:12:32 -0500 Subject: [PATCH] dev-cmd/bump: change `args` type to `CLI::Args` Signed-off-by: Michael Cho --- Library/Homebrew/cli/args.rbi | 9 +++++++++ Library/Homebrew/dev-cmd/bump.rb | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cli/args.rbi b/Library/Homebrew/cli/args.rbi index e51b8fe18f..1b12fa96c2 100644 --- a/Library/Homebrew/cli/args.rbi +++ b/Library/Homebrew/cli/args.rbi @@ -207,6 +207,15 @@ module Homebrew sig { returns(T::Boolean) } def fail_if_not_changed?; end + sig { returns(T::Boolean) } + def no_pull_requests?; end + + sig { returns(T::Boolean) } + def no_fork?; end + + sig { returns(T::Boolean) } + def open_pr?; end + sig { returns(T.nilable(String)) } def limit; end diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index 10dac55853..ec5fec639c 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -309,7 +309,7 @@ module Homebrew params( formula_or_cask: T.any(Formula, Cask::Cask), repositories: T::Array[T.untyped], - args: T.untyped, + args: CLI::Args, name: String, ).returns(VersionBumpInfo) } @@ -417,7 +417,7 @@ module Homebrew formula_or_cask: T.any(Formula, Cask::Cask), name: String, repositories: T::Array[T.untyped], - args: T.untyped, + args: CLI::Args, ambiguous_cask: T::Boolean, ).void }