This PR updates the return type in spec for Config.new/2. Currently, the spec says that the return is specifically an empty map %{}, whereas I believe it should be the overall type map().
For posterity's sake, I discovered this error when I tried to call S3.presigned_post/4 like so:
The call 'Elixir.ExAws.S3':presigned_post
(#{},
<<...>>,
<<...>>) will never return since it differs in the 1st argument from the success typing arguments:
(#{'json_codec' := atom(), _ => _},
binary(),
'nil' | binary())
By the way, I'm using this project with DigitalOcean spaces for my Elixir project, and it is awesome! Thanks so much for all of your work on it!
This PR updates the return type in spec for
Config.new/2
. Currently, the spec says that the return is specifically an empty map%{}
, whereas I believe it should be the overall typemap()
.For posterity's sake, I discovered this error when I tried to call
S3.presigned_post/4
like so:which threw the following Dialyzer warning:
By the way, I'm using this project with DigitalOcean spaces for my Elixir project, and it is awesome! Thanks so much for all of your work on it!