Use credo to check spec cannot use any

I want to use credo to check my spec, for example, the following will give me an error.No unknown types can exist

@spec subject_for_token(%{id: integer}, any) :: {:error, :id_extraction_failed} | {:ok, binary}

A friend told me to use ExplicitAnyType, but I didn’t find it in credo’s documentation.

Can you copy and paste the exact credo output? Googling for this message does not turn up anything.

1 Like