[Python-projects] Bogus alert about gobject subclass

skip at pobox.com skip at pobox.com
Mon Aug 7 22:02:42 CEST 2006


We use Gtk (2.6) at work.  If I subclass gobject.GObject, like so:

    class contractSelector(gobject.GObject):
        __gsignals__ = {
            'some_signal': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ())
            }
        def __init__(self, accountList):
            gobject.GObject.__init__(self)
        ...

referring to the call to gobject.GObject.__init__, PyLint complains:

    foo.py:18: [W, contractSelector.__init__] __init__ method from a non direct base class <logilab.astng.Yes object at 0x8254dcc> is called

What's up with that?

Thx,

-- 
Skip Montanaro - skip at pobox.com - http://www.mojam.com/


More information about the Python-Projects mailing list