Use code below
self._foo = 'foo'
Base class with mangled name of setup to avoid accidental overwriting.
Even if someone writes
method in child class, the setup of parent class will be untouched.
Can you provide your SonarLint flavor and version? And are you using it in connected mode with SonarCloud or SonarQube (which version)?
I am using SonarLint as a local PyCharm extension in version 184.108.40.206206
Thanks for the details. What’s your SonarLint version?
How could I check this? In a plugin description I have got only this:
Thanks for the screenshot. It confirms that your SonarLint version is the latest. Sorry, but I thought earlier that you were giving your PyCharm version.
I’ve flagged this for the language experts.
Thank your for reporting this false positive: I created a ticket SONARPY-1257 to track it.