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

Fixes dialyzer error due to proplist and Keyword incompatibility #207

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

jessestimpson
Copy link
Contributor

AWS.HTTPClient.Hackney.request/5 has a type error in the implementation which causes dialyzer to fail:

lib/aws/http_client/hackney.ex:12:no_return
Function request/5 has no local return.

Keyword always expects items to be of the form {key(), value()}. However, the code is including item :with_body, in the style of t:proplists.proplist/0.

Changing the order of execution resolves the typing issue.

Keyword always expects {key(), value()} items.
@onno-vos-dev
Copy link
Member

@jessestimpson How do you want to deal with this PR in lights of: aws-beam/aws-codegen#121? Do you want me to wait rolling out a release with this fix until we converge on a fix for that issue or would you like to see a release rolled out containing this fix? I don't really mind either way, letting you decide before I merge 👍

@jessestimpson
Copy link
Contributor Author

@onno-vos-dev I'm happy to wait on a release. Thanks!

@onno-vos-dev onno-vos-dev merged commit 8b045d8 into aws-beam:master Mar 17, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants