Pylint为子流程模块返回了很多误报:

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

我怎样才能解决这个问题?

最佳答案

此错误已在logilab-astng包中找到:
http://www.logilab.org/ticket/46273

他们创建了一个新的名为pylint-brain的副项目,它将是一组插件,并包含在logilab-astng中。同时,您可以从此处克隆或下载最新代码:https://bitbucket.org/logilab/pylint-brain/overview

这些说明在上述站点上,但是基本方法是:

  • 提取pylint-brain
  • 将“.../site-packages/logilab/astng/brain”重命名为“.../site-packages/logilab/astng/brain-old”
  • 将提取的“brain”文件夹复制或软链接(soft link)到“.../site-packages/logilab/astng/brain”
  • 验证pylint仍在运行,并且subprocess.Popen问题已修复
  • 关于python - Pylint假阳性E1101 : Instance of 'Popen' has no 'poll' member,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14280372/

    10-12 18:35