From 98e366d8b00b961c1980f65f808051b6d1ce6a3f Mon Sep 17 00:00:00 2001 From: Jeremy Huffman Date: Tue, 24 Sep 2024 08:01:48 -0400 Subject: [PATCH] Fix matching of invalid_contract args. --- lib/dialyxir/warnings/invalid_contract.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dialyxir/warnings/invalid_contract.ex b/lib/dialyxir/warnings/invalid_contract.ex index c16e68c9..2f86a51b 100644 --- a/lib/dialyxir/warnings/invalid_contract.ex +++ b/lib/dialyxir/warnings/invalid_contract.ex @@ -31,7 +31,7 @@ defmodule Dialyxir.Warnings.InvalidContract do @impl Dialyxir.Warning @spec format_long([String.t()]) :: String.t() - def format_long([module, function, arity, signature]) do + def format_long([module, function, arity, _args, signature | _]) do pretty_module = Erlex.pretty_print(module) pretty_signature = Erlex.pretty_print_contract(signature)