[Python-projects] Pylint not identifying types correctly

Marcelo de Sena Lacerda marceloslacerda at gmail.com
Tue Apr 14 21:21:33 CEST 2009


Hi, I'm new to the list and I'm having a problem with pylint. It is not
identifying types correctly in the following code:

org = Organization.get_by_key_name('LOL')

str = org.key().name()

The get_by_key_name method always returns a Organization instance that have
a key() method.

Pylint however says that get_by_key_name returns a list, that does not have
a key method.

How do I solve this?

-- 
Marcelo Sena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090414/c1bdb868/attachment-0185.html>


More information about the Python-Projects mailing list