No. I get the E1101 error. So it seems it is a problem with my system.

locate pylint shows that the only installed package is
/usr/local/lib/python2.7/dist-packages/pylint-1.1.0.egg-info

I installed it with pip.

Zunbeltz



or., 2014.eko urtren 17a 10:45(e)an, Sylvain Thénault(e)k idatzi zuen:
On 17 janvier 10:18, Zunbeltz Izaola wrote:
Dear Sylvain,

It is strange that the error is for all the methods of the gtk3 objects.
I import the Gtk namespace in the following way


from gi.repository import Gtk
from gi.repository import Gio

Construction the basic objects, like Box(), is fine; but calling its
methods raises the error mensage.
This is why I think that brain was not enabled by default.
The tests at pylint-brain/test run fine.
The pylint --version output is

pylint 1.1.0,
astroid 1.0.1, common 0.60.1
Python 2.7.5+ (default, Sep 19 2013, 13:49:51)
[GCC 4.8.1]
[syt@orion ~]$ cat girepo.py
from gi.repository import Gtk
b = Gtk.Box()
b.show_all()
[syt@orion ~]$ pylint -rn girepo.py
************* Module girepo
C:  1, 0: Missing module docstring (missing-docstring)
C:  2, 0: Invalid constant name "b" (invalid-name)


Does this work for you?


--
Zunbeltz Izaola

_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to