Skip to content

Fix FP raised by S3827 when accessing class attribute in decorator#530

Merged
guillaume-dequenne merged 1 commit into
masterfrom
SONARPY-554
Jan 20, 2020
Merged

Fix FP raised by S3827 when accessing class attribute in decorator#530
guillaume-dequenne merged 1 commit into
masterfrom
SONARPY-554

Conversation

@guillaume-dequenne
Copy link
Copy Markdown
Contributor

@guillaume-dequenne guillaume-dequenne commented Jan 20, 2020

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, See my comment about class decorators

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do the same for class decorators.

class A:
    _ATTR = 42
    @decorator(_ATTR)  # OK
    class Foo: pass

@guillaume-dequenne guillaume-dequenne changed the title Fix FP raised by S3827 when accessing class attribute in method decor… Fix FP raised by S3827 when accessing class attribute in decorator Jan 20, 2020
@guillaume-dequenne guillaume-dequenne merged commit bbcd48e into master Jan 20, 2020
@guillaume-dequenne guillaume-dequenne deleted the SONARPY-554 branch February 10, 2020 15:40
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request Oct 9, 2025
GitOrigin-RevId: 5a8adf5daabfad863bef2a7b7964f38f1b475b2e
hashicorp-vault-sonar-prod Bot pushed a commit that referenced this pull request Oct 15, 2025
GitOrigin-RevId: 5a8adf5daabfad863bef2a7b7964f38f1b475b2e
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