Skip to content

Commit

Permalink
Merge pull request #220 from Munksgaard/patch-1
Browse files Browse the repository at this point in the history
Silence dialyzer warnings about do_plural_rule
  • Loading branch information
kipcole9 committed Nov 2, 2023
2 parents a283e2f + 9eaf371 commit 3b209a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cldr/plural_rules/plural_rule.ex
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,11 @@ defmodule Cldr.Number.PluralRule do
def define_plural_rules do
quote bind_quoted: [], location: :keep do
alias Cldr.Number.PluralRule

# Silence warnings since the success typing of do_plural_rule will depend
# on the locale used.
@dialyzer {:nowarn_function, [do_plural_rule: 8]}

# Generate the functions to process plural rules
@spec do_plural_rule(
LanguageTag.t(),
Expand Down

0 comments on commit 3b209a1

Please sign in to comment.