Invalid type spec for `Infer.get_from_path/1,2`
smaximov opened this issue · comments
Sergei Maximov commented
The type specification states that the function returns either Infer.Type.t()
or nil
, but it returns {:error, :file.posix()}
if given a non-existing path:
iex(1)> Infer.get_from_path("/path/to/non/existing/file.jpeg")
{:error, :enoent}
Daniel Khaapamyaki commented
Closed in #13