OK, so it’s obvious that you need to explicitly ignore the warning — ignore it. This can be done in the pylint configuration file: if you don’t have one, just create a standard configuration via
pylint --generate-rcfile > pylint.rc
and uncomment the line with disable=... and add I0011 to the list. This suppresses all warnings regarding "locally defined violations."
Another method is to add the following line to the beginning of the file (or block, whatever) if you do not want to suppress the warning globally:
#pylint: disable=I0011
tamasgal
source share