Move PyLint warning inside the class