Open pylint-bot opened 9 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
Have you tried using this with --extension-pkg-whitelist=pygtk or PyQt4?
Original comment by Yann Dirson (BitBucket: ydirson, GitHub: @ydirson?):
I had missed that - using --extension-pkg-whitelist=gtk,pangocairo,rsvg,PyQt4,sip
does improve the results a lot, thanks. However, in my code it still barfs on some valid statements, like:
E:346, 8: Class 'vbox' has no 'pack_start' member (no-member)
E:347, 8: Class 'vbox' has no 'show_all' member (no-member)
on :
#!python
def notify(self, title, text):
dlg = gtk.Dialog("omaha - " + title,
buttons=(gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
dlg.vbox.pack_start(gtk.Label(text))
dlg.vbox.show_all()
dlg.run()
dlg.destroy()
Originally reported by: Yann Dirson (BitBucket: ydirson, GitHub: @ydirson?)
The testcase provided in 2009 for a fix to support PyQt4 (https://lists.logilab.org/pipermail/python-projects/2009-July/001978.html) still causes simiar issues, with pylint 1.3.1 as well as current tip (both using astroid-1.2.1):
It may or may not be related, but pygtk shows similar false positives: