Closed LeoLeiteSC closed 3 years ago
I'm using the main branch since the hmac is deprecated in Erlang 24, and I found a bug when building my own build_client function. It's possible to see this bug mainly in the Dialyzer:
main
hmac
build_client
lib/.../adapters/tesla/tesla.ex:24:callback_type_mismatch Type mismatch for @callback build_client/1 in ExForce.Client behaviour. Expected type: atom() Actual type: %Tesla.Client{ :adapter => nil | {:fn, (... -> any)}, :fun => nil, :post => [{_, _} | {_, _, _}], :pre => [{_, _} | {_, _, _}] }
The problem is a recent change that modify the type of the build_client function to be module, but Elixir internally sees this type as an atom: https://hexdocs.pm/elixir/1.12/typespecs.html#built-in-types
module
atom
I think the best solution is modify this type to any again.
any
I'm using the
main
branch since thehmac
is deprecated in Erlang 24, and I found a bug when building my ownbuild_client
function. It's possible to see this bug mainly in the Dialyzer:The problem is a recent change that modify the type of the
build_client
function to bemodule
, but Elixir internally sees this type as anatom
: https://hexdocs.pm/elixir/1.12/typespecs.html#built-in-typesI think the best solution is modify this type to
any
again.