elixir-gmail icon indicating copy to clipboard operation
elixir-gmail copied to clipboard

wrong spec for `Gmail.User.attachment/3`?

Open ckruse opened this issue 5 years ago • 0 comments

Dialyzer gives me an error for this code:

{:ok, attachment} = Gmail.User.attachment("foo@bar", mail.id, attachment_part.body.attachment_id)

The message is:

The pattern can never match the type.

Pattern:
{:ok, _attachment}

Type:
atom()

ckruse avatar Sep 23 '20 05:09 ckruse