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

fix(rosetta): variadic arguments may use kwargs syntax in Python #1832

Merged
merged 2 commits into from
Jul 29, 2020

Conversation

RomainMuller
Copy link
Contributor

When processing function calls, the signature of the function was not
considered when it was available, and an object literal used as the
final argument of a variadic call would be rendered as keyword arguments
when this is actually not a correct way to render variadic values.

This change attempts to read the resolved signature of the function
beging called, in order to correctly render variadic values.

Fixes #1821


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When processing function calls, the signature of the function was not
considered when it was available, and an object literal used as the
final argument of a variadic call would be rendered as keyword arguments
when this is actually not a correct way to render variadic values.

This change attempts to read the resolved signature of the function
beging called, in order to correctly render variadic values.

Fixes #1821
@RomainMuller RomainMuller added bug This issue is a bug. contribution/core This is a PR that came from AWS. labels Jul 29, 2020
@RomainMuller RomainMuller requested a review from a team July 29, 2020 13:44
@RomainMuller RomainMuller self-assigned this Jul 29, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 29, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Jul 29, 2020
@mergify
Copy link
Contributor

mergify bot commented Jul 29, 2020

Merging (with squash)...

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: 31d5d03
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 079e147 into master Jul 29, 2020
@mergify mergify bot deleted the rmuller/rosetta-varargs branch July 29, 2020 14:53
@mergify
Copy link
Contributor

mergify bot commented Jul 29, 2020

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rossetta issue: varargs are ignored when hoisting keyword arguments
3 participants