diff --git a/Library/Homebrew/api/analytics.rb b/Library/Homebrew/api/analytics.rb index ee8d36a933..3d4aa5e136 100644 --- a/Library/Homebrew/api/analytics.rb +++ b/Library/Homebrew/api/analytics.rb @@ -1,4 +1,4 @@ -# typed: true # rubocop:todo Sorbet/StrictSigil +# typed: strict # frozen_string_literal: true module Homebrew @@ -12,7 +12,7 @@ module Homebrew end alias generic_analytics_api_path analytics_api_path - sig { params(category: String, days: T.any(Integer, String)).returns(Hash) } + sig { params(category: String, days: T.any(Integer, String)).returns(T::Hash[String, Integer]) } def fetch(category, days) Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json" end