We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rule EC7 (AvoidGettersAndSetters) detects __init__ methods with one argument and assignment as a setter.
__init__
To Reproduce Code that can reproduce the error:
class Something: def __init__(self, value): self.value = value ...
Expected behavior It shouldn't be detected as a code smell since init method is used to assign values to object properties.
init
Software Versions
The text was updated successfully, but these errors were encountered:
Hi @AghilesAzzoug ,
thank you for your issue. you agree it's a bug. the correction is done in related PR. I'm waiting for core team reviewer.
Sorry, something went wrong.
dedece35
Successfully merging a pull request may close this issue.
Rule EC7 (AvoidGettersAndSetters) detects
__init__
methods with one argument and assignment as a setter.To Reproduce
Code that can reproduce the error:
Expected behavior
It shouldn't be detected as a code smell since
init
method is used to assign values to object properties.Software Versions
The text was updated successfully, but these errors were encountered: