timber-elixir icon indicating copy to clipboard operation
timber-elixir copied to clipboard

Timber.add_context wrong typespec

Open gabrielpra1 opened this issue 6 years ago • 0 comments

Timber.add_context has the typespec @spec add_context(map()) :: :ok, even though the function also accepts a keyword list as parameter.

This causes Dialyzer to throw misleading warnings:

The call 'Elixir.Timber':add_context([{'origin','tracker'},...]) will never return since the success typing is (map()) -> 'ok' and the contract is (map()) -> 'ok'

gabrielpra1 avatar Jun 10 '19 13:06 gabrielpra1