Pylint False Positive E1101: Popen instance has no poll member

Pylint returns many false positives for the subprocess module:

E1101:184,7:resetboard: Instance of 'Popen' has no 'poll' member E1101:188,4:resetboard: Instance of 'Popen' has no 'terminate' member # etc. 

How can i fix this?

+7
source share
1 answer

This error was identified in the logilab-astng : http://www.logilab.org/ticket/46273

They created a new side project called pylint-brain , which will be a set of plugins and will be included in logilab-astng . In the meantime, you can clone or download the latest code from here: https://bitbucket.org/logilab/pylint-brain/overview

Instructions are on the above site, but the basic approach:

  • Extract pylint-brain
  • Rename "... / site-packages / logilab / astng / brain" to "... / site-packages / logilab / astng / brain-old"
  • Copy or soft link the extracted brain folder to "... / site-packages / logilab / astng / brain"
  • Check that pylint is still working and subprocess.Popen fixed.
+7
source

All Articles