diff --git a/Library/Homebrew/livecheck/strategy/apache.rb b/Library/Homebrew/livecheck/strategy/apache.rb index bf677fbfc7..8cf811bc56 100644 --- a/Library/Homebrew/livecheck/strategy/apache.rb +++ b/Library/Homebrew/livecheck/strategy/apache.rb @@ -93,7 +93,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/bitbucket.rb b/Library/Homebrew/livecheck/strategy/bitbucket.rb index 3cc93075dc..97e515352c 100644 --- a/Library/Homebrew/livecheck/strategy/bitbucket.rb +++ b/Library/Homebrew/livecheck/strategy/bitbucket.rb @@ -96,7 +96,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/cpan.rb b/Library/Homebrew/livecheck/strategy/cpan.rb index 5e6f01b384..17ed6c98f4 100644 --- a/Library/Homebrew/livecheck/strategy/cpan.rb +++ b/Library/Homebrew/livecheck/strategy/cpan.rb @@ -80,7 +80,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/electron_builder.rb b/Library/Homebrew/livecheck/strategy/electron_builder.rb index 11e9abc280..942ef21270 100644 --- a/Library/Homebrew/livecheck/strategy/electron_builder.rb +++ b/Library/Homebrew/livecheck/strategy/electron_builder.rb @@ -45,7 +45,7 @@ module Homebrew regex: T.nilable(Regexp), provided_content: T.nilable(String), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, provided_content: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/extract_plist.rb b/Library/Homebrew/livecheck/strategy/extract_plist.rb index 842e966571..6266511970 100644 --- a/Library/Homebrew/livecheck/strategy/extract_plist.rb +++ b/Library/Homebrew/livecheck/strategy/extract_plist.rb @@ -64,7 +64,7 @@ module Homebrew params( items: T::Hash[String, Item], regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_items(items, regex = nil, &block) @@ -92,7 +92,7 @@ module Homebrew url: T.nilable(String), regex: T.nilable(Regexp), _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(cask:, url: nil, regex: nil, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/git.rb b/Library/Homebrew/livecheck/strategy/git.rb index 1843b3ab9f..817bac687d 100644 --- a/Library/Homebrew/livecheck/strategy/git.rb +++ b/Library/Homebrew/livecheck/strategy/git.rb @@ -85,7 +85,7 @@ module Homebrew params( tags: T::Array[String], regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_tags(tags, regex = nil, &block) @@ -125,7 +125,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/github_latest.rb b/Library/Homebrew/livecheck/strategy/github_latest.rb index a7a6be4650..d91f5074b4 100644 --- a/Library/Homebrew/livecheck/strategy/github_latest.rb +++ b/Library/Homebrew/livecheck/strategy/github_latest.rb @@ -92,7 +92,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/gnome.rb b/Library/Homebrew/livecheck/strategy/gnome.rb index c021a7870b..47ef45306f 100644 --- a/Library/Homebrew/livecheck/strategy/gnome.rb +++ b/Library/Homebrew/livecheck/strategy/gnome.rb @@ -82,7 +82,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/gnu.rb b/Library/Homebrew/livecheck/strategy/gnu.rb index 454be494df..afbe7b7d54 100644 --- a/Library/Homebrew/livecheck/strategy/gnu.rb +++ b/Library/Homebrew/livecheck/strategy/gnu.rb @@ -92,7 +92,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/hackage.rb b/Library/Homebrew/livecheck/strategy/hackage.rb index 7f7ace27a1..f483e8ab09 100644 --- a/Library/Homebrew/livecheck/strategy/hackage.rb +++ b/Library/Homebrew/livecheck/strategy/hackage.rb @@ -78,7 +78,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/header_match.rb b/Library/Homebrew/livecheck/strategy/header_match.rb index a54c19abb4..5f3ceb6e4f 100644 --- a/Library/Homebrew/livecheck/strategy/header_match.rb +++ b/Library/Homebrew/livecheck/strategy/header_match.rb @@ -44,7 +44,7 @@ module Homebrew params( headers: T::Hash[String, String], regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_headers(headers, regex = nil, &block) @@ -79,7 +79,7 @@ module Homebrew regex: T.nilable(Regexp), homebrew_curl: T::Boolean, _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, homebrew_curl: false, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/json.rb b/Library/Homebrew/livecheck/strategy/json.rb index cd0063f393..042dbe1644 100644 --- a/Library/Homebrew/livecheck/strategy/json.rb +++ b/Library/Homebrew/livecheck/strategy/json.rb @@ -70,7 +70,7 @@ module Homebrew params( content: String, regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_content(content, regex = nil, &block) @@ -105,7 +105,7 @@ module Homebrew provided_content: T.nilable(String), homebrew_curl: T::Boolean, _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/launchpad.rb b/Library/Homebrew/livecheck/strategy/launchpad.rb index 54810907f9..5593f04a01 100644 --- a/Library/Homebrew/livecheck/strategy/launchpad.rb +++ b/Library/Homebrew/livecheck/strategy/launchpad.rb @@ -75,7 +75,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/npm.rb b/Library/Homebrew/livecheck/strategy/npm.rb index 32ce082361..b72051c472 100644 --- a/Library/Homebrew/livecheck/strategy/npm.rb +++ b/Library/Homebrew/livecheck/strategy/npm.rb @@ -73,7 +73,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/page_match.rb b/Library/Homebrew/livecheck/strategy/page_match.rb index a024bdb552..37a69b0c49 100644 --- a/Library/Homebrew/livecheck/strategy/page_match.rb +++ b/Library/Homebrew/livecheck/strategy/page_match.rb @@ -51,7 +51,7 @@ module Homebrew params( content: String, regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_content(content, regex, &block) @@ -88,7 +88,7 @@ module Homebrew provided_content: T.nilable(String), homebrew_curl: T::Boolean, _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/pypi.rb b/Library/Homebrew/livecheck/strategy/pypi.rb index c069cfcbd3..206585474b 100644 --- a/Library/Homebrew/livecheck/strategy/pypi.rb +++ b/Library/Homebrew/livecheck/strategy/pypi.rb @@ -87,7 +87,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/sourceforge.rb b/Library/Homebrew/livecheck/strategy/sourceforge.rb index f8dd2a176a..8a08235fce 100644 --- a/Library/Homebrew/livecheck/strategy/sourceforge.rb +++ b/Library/Homebrew/livecheck/strategy/sourceforge.rb @@ -92,7 +92,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/sparkle.rb b/Library/Homebrew/livecheck/strategy/sparkle.rb index 87c6aefedd..3a34de97f5 100644 --- a/Library/Homebrew/livecheck/strategy/sparkle.rb +++ b/Library/Homebrew/livecheck/strategy/sparkle.rb @@ -146,7 +146,7 @@ module Homebrew params( content: String, regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_content(content, regex = nil, &block) @@ -181,7 +181,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/xml.rb b/Library/Homebrew/livecheck/strategy/xml.rb index 5fee37529b..b1a59d40ab 100644 --- a/Library/Homebrew/livecheck/strategy/xml.rb +++ b/Library/Homebrew/livecheck/strategy/xml.rb @@ -87,7 +87,7 @@ module Homebrew params( content: String, regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_content(content, regex = nil, &block) @@ -123,7 +123,7 @@ module Homebrew provided_content: T.nilable(String), homebrew_curl: T::Boolean, _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/xorg.rb b/Library/Homebrew/livecheck/strategy/xorg.rb index 65f14c01bf..513352d4a5 100644 --- a/Library/Homebrew/livecheck/strategy/xorg.rb +++ b/Library/Homebrew/livecheck/strategy/xorg.rb @@ -114,7 +114,7 @@ module Homebrew url: String, regex: T.nilable(Regexp), unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, **unused, &block) diff --git a/Library/Homebrew/livecheck/strategy/yaml.rb b/Library/Homebrew/livecheck/strategy/yaml.rb index ab31b5b96c..e96ca16608 100644 --- a/Library/Homebrew/livecheck/strategy/yaml.rb +++ b/Library/Homebrew/livecheck/strategy/yaml.rb @@ -70,7 +70,7 @@ module Homebrew params( content: String, regex: T.nilable(Regexp), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Array[String]) } def self.versions_from_content(content, regex = nil, &block) @@ -105,7 +105,7 @@ module Homebrew provided_content: T.nilable(String), homebrew_curl: T::Boolean, _unused: T.nilable(T::Hash[Symbol, T.untyped]), - block: T.untyped, + block: T.nilable(Proc), ).returns(T::Hash[Symbol, T.untyped]) } def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block)