elixir-cldr / cldr_territories

Territory formatting functions for the Common Locale Data Repository (CLDR) package https://github.com/elixir-cldr/cldr
Other
23 stars 11 forks source link

Dialyzer failure - `translate_territory!`, `translate_subdivision!` and `translate_language_tag!` #44

Closed peaceful-james closed 3 months ago

peaceful-james commented 5 months ago

I recently started getting this dialyzer failure:

mix dialyzer

deps/ex_cldr_territories/lib/cldr/backend.ex:465:pattern_match
The pattern can never match the type.

Pattern:
{:ok, _}

Type:
{:error, {atom(), binary()}}

________________________________________________________________________________
deps/ex_cldr_territories/lib/cldr/backend.ex:486:pattern_match
The pattern can never match the type.

Pattern:
{:ok, _}

Type:
{:error, {atom(), binary()}}

________________________________________________________________________________
deps/ex_cldr_territories/lib/cldr/backend.ex:543:pattern_match
The pattern can never match the type.

Pattern:
{:ok, _}

Type:
{:error, {atom(), binary()}}

_______

versions: elixir 1.17.0-rc.0 erlang 27.0

lib versions: dialyxir 1.4.3 ex_cldr 2.38.1 ex_cldr_territories 2.9.0

peaceful-james commented 3 months ago

This problem went away one day and never came back. I am closing this issue.