Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typespec of do_plural_rule might not match success typing when using extra_returns #219

Closed
Munksgaard opened this issue Oct 26, 2023 · 0 comments · Fixed by #220
Closed

Comments

@Munksgaard
Copy link
Contributor

Similar to elixir-cldr/cldr_numbers#44 and elixir-cldr/cldr_currencies#11, Cldr can cause issues for projects that have the extra_returns option for dialyzer enabled.

The issue (as I understand it) is that the return type of do_plural_rule depends on the specific locale used. Therefore, we cannot statically determine the correct typespec. At the same, accurately describing the possible values that might be returned is valuable, so we would like to keep the typespec in place. Therefore, a solution might be to silence warnings for this particular function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant