【发布时间】:2013-06-17 07:18:38
【问题描述】:
如果我使用的是不存在的成员,我非常喜欢让 pylint 告诉我。但是,我的新项目同时使用了 twisted 和 ehem 模块,这似乎让 pylint 感到困惑。
我怎样才能摆脱这些(不正确的)pylint 警告,而无需通常关闭 E1101,也无需在每个相关呼叫周围散布警告删除 cmets?
E1101: 8,0: Module 'twisted.internet.reactor' has no 'run' member
E1101: 49,25:sunrise_next: Module 'ephem' has no 'Sun' member
E1101: 63,26:sunset_next: Module 'ephem' has no 'Sun' member
【问题讨论】:
-
我会在这里做与我刚刚在stackoverflow.com/questions/17156240/nose-tools-and-pylint (stackoverflow.com/a/17162842/853679) 上所做的相同的答案
-
把那个答案的副本移到这里,我会接受的。
标签: python twisted pylint pyephem