Skip to content

Commit

Permalink
Merge pull request #18088 from Homebrew/api-analytics-typed-strict
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid committed Aug 20, 2024
2 parents 79d91aa + 683a8aa commit 9323438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/api/analytics.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# typed: true # rubocop:todo Sorbet/StrictSigil
# typed: strict
# frozen_string_literal: true

module Homebrew
Expand All @@ -12,7 +12,7 @@ def analytics_api_path
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, T.untyped]) }
def fetch(category, days)
Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json"
end
Expand Down

0 comments on commit 9323438

Please sign in to comment.