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(python): members named property results in invalid code #1114

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

RomainMuller
Copy link
Contributor

When a member is named property, it would start taking precedence over
builtings.property when resolving the @property decorator. Fixed
this by manually namespacing all @<decorator>, so local scope
declarations cannot possibly shadow decorators.

Fixes #1113


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

@RomainMuller RomainMuller requested a review from a team as a code owner December 11, 2019 20:14
When a member is named `property`, it would start taking precedence over
`builtings.property` when resolving the `@property` decorator. Fixed
this by manually namespacing all `@<decorator>`, so local scope
declarations cannot possibly shadow decorators.

Fixes #1113
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Dec 11, 2019

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 merged commit 92be5d7 into master Dec 11, 2019
@mergify mergify bot deleted the rmuller/fix/1113 branch December 11, 2019 21:06
@mergify mergify bot removed the ready-to-merge label Dec 11, 2019
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.

Python: Property called 'property' makes Python file unimportable
3 participants