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

chore(python): use builtins.str instead of just str in Dict keys #3866

Merged
merged 2 commits into from
Dec 1, 2022

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Dec 1, 2022

Added an integration test to verify parameters named builtins or str
do not shadow the relevant type names, which used to be problematic
until #3848 fixed the overarching issue, hoever the existing test only
covered the case where a parameter name shadowed an namespace/import.

Additionally, changes various typing.Dict keys that were mistakenly
spelled out as str to use builtins.str in order to improve overall
consistency in type declarations (see also #3866).

Co-authored-by: rmuller@amazon.fr


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

DanielMSchmidt and others added 2 commits December 1, 2022 10:26
Added an integration test to verify parameters named `builtins` or `str`
do not shadow the relevant type names, which used to be problematic
until aws#3848 fixed the overarching issue, hoever the existing test only
covered the case where a parameter name shadowed an namespace/import.

Additionally, changes various `typing.Dict` keys that were mistakenly
spelled out as `str` to use `builtins.str` in order to improve overall
consistency in type declarations (see also aws#3866).

Co-authored-by: rmuller@amazon.fr
@RomainMuller RomainMuller changed the title fix(pacmak): use builtins.str instead of str for type annotations chore(python): use builtins.str instead of just str in Dict keys Dec 1, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 1, 2022

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 Dec 1, 2022
@mergify
Copy link
Contributor

mergify bot commented Dec 1, 2022

Merging (with squash)...

@mergify mergify bot merged commit 843ef35 into aws:main Dec 1, 2022
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Dec 1, 2022
DanielMSchmidt added a commit to hashicorp/terraform-cdk that referenced this pull request Dec 1, 2022
The issue causing this problem will be released in the next days, but we have
other problems in the release pipeline that should be fixed beforehand.
Therefore I'll disable these tests for now and re-add them when updating JSII.

The fix we are waiting for to be released is aws/jsii#3866
DanielMSchmidt added a commit to hashicorp/terraform-cdk that referenced this pull request Dec 1, 2022
The issue causing this problem will be released in the next days, but we have
other problems in the release pipeline that should be fixed beforehand.
Therefore I'll disable these tests for now and re-add them when updating JSII.

The fix we are waiting for to be released is aws/jsii#3866
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