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

added flake8-mutable #137

Merged

Conversation

vr050714
Copy link
Contributor

@vr050714 vr050714 commented Oct 5, 2023

Added flake8-mutable to Bugs section. The extension detects usage of mutable objects as default values for arguments like this.

def foo(x = []):
    return x

a = foo()
b = foo()  # gets reference to the same list

Note: In order to enable notifications the additional M class must be added to the selelct parameter in the settings.

Closes #136

Copy link
Collaborator

@orsinium orsinium left a comment

Choose a reason for hiding this comment

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

Thank you!

@DmytroLitvinov DmytroLitvinov merged commit d4a32eb into DmytroLitvinov:master Oct 6, 2023
1 check passed
@DmytroLitvinov
Copy link
Owner

Thanks 👍

@vr050714 vr050714 deleted the adding_flake8-mutable branch October 7, 2023 23:03
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.

Add flake8-mutable
3 participants