From 5fd45cc5b58eeada93911b11f6710e7b9098f85b Mon Sep 17 00:00:00 2001 From: Michael Ruoss Date: Sun, 26 Feb 2023 09:48:42 +0100 Subject: [PATCH] better spec --- lib/k8s/client.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/k8s/client.ex b/lib/k8s/client.ex index c69793f8..4f6eb82d 100644 --- a/lib/k8s/client.ex +++ b/lib/k8s/client.ex @@ -452,7 +452,7 @@ defmodule K8s.Client do def patch(%{} = resource), do: Operation.build(:patch, resource, patch_type: :merge) - @spec patch(map(), patch_type_or_resource :: atom() | map()) :: Operation.t() + @spec patch(map(), patch_type_or_resource :: Operation.patch_type() | map()) :: Operation.t() def patch(%{} = resource, patch_type) when is_atom(patch_type), do: Operation.build(:patch, resource, patch_type: patch_type)