From 5353c4fc11560fe1f670909e3c88e8ee84b6d393 Mon Sep 17 00:00:00 2001 From: Sean Lang Date: Tue, 25 Jun 2024 02:51:59 -0500 Subject: [PATCH] Fix spec on register_options/2 (#376) --- lib/req/request.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/req/request.ex b/lib/req/request.ex index a31258c..c436717 100644 --- a/lib/req/request.ex +++ b/lib/req/request.ex @@ -1035,7 +1035,7 @@ defmodule Req.Request do Req.get!(req, url: "/status/201", foo: :bar).status #=> 201 """ - @spec register_options(t(), keyword()) :: t() + @spec register_options(t(), [atom()]) :: t() def register_options(%Req.Request{} = request, options) when is_list(options) do update_in(request.registered_options, &MapSet.union(&1, MapSet.new(options))) end