Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid type spec for Infer.get_from_path/1,2 #9

Closed
smaximov opened this issue Nov 16, 2023 · 1 comment
Closed

Invalid type spec for Infer.get_from_path/1,2 #9

smaximov opened this issue Nov 16, 2023 · 1 comment

Comments

@smaximov
Copy link

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}
@daskycodes
Copy link
Owner

Closed in #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants