From f4edbd52150d9432ff89a20f0205e5961c7b5e63 Mon Sep 17 00:00:00 2001 From: Eric Saxby Date: Mon, 24 Mar 2025 10:23:58 -0700 Subject: [PATCH] Fix spec for attrs() to allow lists of tuples `[{:binary, :binary}]` only matches on the atom `:binary`, rather than on the type `binary()`. --- lib/xml_stream.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xml_stream.ex b/lib/xml_stream.ex index 73c52d7..6eee993 100644 --- a/lib/xml_stream.ex +++ b/lib/xml_stream.ex @@ -31,7 +31,7 @@ defmodule XmlStream do Could be either `Keyword` or `map`. Order of the attributes are preserved in case of `Keyword` """ - @type attrs :: map | Keyword.t() | [{:binary, :binary}] + @type attrs :: map | Keyword.t() | [{binary(), binary()}] @type fragment :: [tuple | fragment] @typedoc """