dialyxir
dialyxir copied to clipboard
Failed to parse
Environment
-
Elixir & Erlang/OTP versions (elixir --version): Elixir 1.13.4 (compiled with Erlang/OTP 23)
-
Which version of Dialyxir are you using? (cat mix.lock | grep dialyxir): 1.2.0
Current behavior
Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.
Failed to format warning:
"@spec a({:ok, %{<<100, 97, 116, 97>> => %{<<114, 101, 108, 97, 116, 105, 111, 110, 115, 104, 105, 112, 115>> => %{<<97, 99, 99, 111, 117, 110, 116>> => %{<<108, 105, 110, 107, 115>> => %{<<114, 101, 108, 97, 116, 101, 100>> => <<47, 118, 50, 47, 97, 99, 99, 111, 117, 110, 116, 115, 47, _account_id@1/binary>>}}}}}}) :: :ok\ndef a() do\n :ok\nend\n"
Legacy warning:
lib/[filtered]/resources/counterparty.ex:43: The pattern {'ok', #{<<100,97,116,97>>:=#{<<114,101,108,97,116,105,111,110,115,104,105,112,115>>:=#{<<97,99,99,111,117,110,116>>:=#{<<108,105,110,107,115>>:=#{<<114,101,108,97,116,101,100>>:=<<47,118,50,47,97,99,99,111,117,110,116,115,47,_account_id@1/binary>>}}}}}} can never match the type {'error',_} | {'ok',#{'__client__':=#{'__struct__':='Elixir.Tesla.Client', 'adapter':='nil' | {_,_} | {_,_,_}, 'fun':=_, 'post':=[any()], 'pre':=[any()]}, '__module__':=atom(), '__struct__':='Elixir.Tesla.Env', 'body':=_, 'headers':=[{_,_}], 'method':='delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace', 'opts':=[{_,_}], 'query':=[{_,_}], 'status':='nil' | integer(), 'url':=binary()}}