cocoa-xu / evision

Evision: An OpenCV-Erlang/Elixir binding
https://evision.app
Apache License 2.0
337 stars 22 forks source link

Possibly fixed typespec #182

Closed Nicd closed 1 year ago

Nicd commented 1 year ago

Diagnosing a Dialyzer error in the Elixir Discord, we came across this typespec that seems to make little sense (a one-element tuple that is a number or a number or a number). Considering the surrounding specs, I assumed it should be a three-element tuple instead with numbers as values. I'm not familiar with the library's problem domain though, so maybe this type is not acceptable, in which case, please promptly throw this PR in the trash. :)

cocoa-xu commented 1 year ago

Hi @tusqasi and @Nicd, thank you for the PR. Good catch!