Skip to content

Commit

Permalink
better spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed Feb 26, 2023
1 parent d24fd32 commit 5fd45cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/k8s/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5fd45cc

Please sign in to comment.