Open al2o3cr opened 2 years ago
ExTwilio.Resource creates a find/2 function with a return type of Parser.parsed_list_response():
ExTwilio.Resource
find/2
Parser.parsed_list_response()
https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/resource.ex#L60-L63
but the function it calls (ExTwilio.Api.find/3) returns a Parser.parsed_response:
ExTwilio.Api.find/3
Parser.parsed_response
https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/api.ex#L47-L53
This causes Dialyzer failures on working code like:
case IncomingPhoneNumber.find(sid, opts) do {:ok, _} -> update_query = from(n in TwilioNumber, where: n.id == ^id, update: [set: [released?: false, campaign_id: nil]] ) Repo.update_all(update_query, []) :ok _ -> :not_updated
ExTwilio.Resource
creates afind/2
function with a return type ofParser.parsed_list_response()
:https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/resource.ex#L60-L63
but the function it calls (
ExTwilio.Api.find/3
) returns aParser.parsed_response
:https://github.com/danielberkompas/ex_twilio/blob/master/lib/ex_twilio/api.ex#L47-L53
This causes Dialyzer failures on working code like: