On 16 mai 15:12, James Lingard wrote:
> [Resurrecting this very old thread...]
> 
> Did anything ever come of these proposals?  It would be extremely helpful
> for me to have some way of providing extra type information to pylint,
> whether via:
> 
>   x = f()
>   assert isinstance(x, MyType)
> 
> or via a type annotation:
> 
>   def f(): # pylint: return-type=MyType
>      ...
> 
> or even via some global property in pylintrc, stating that any variable
> named 'x' is always of type MyType.

Hi James,

unfortunatly, there has been no improvements on this topic yet.
I've  very few time to spent on pylint, which is mainly spent on code 
review (Torsten Marek from Google beeing mostly the one making 
improvments to pylint these days, let's thank him once again btw) and 
release. I also think this would greatly improve things and should be
high priority, though it needs a few days work and deep understanding of
pylint inference system. Maybe Boris who will work on pylint as a GSoC
project would be a good candidate :)
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to