[Python-projects] Suggestion about E1101 Instance of 'None' has no 'get' member

Nicolas Chauvat nicolas.chauvat at logilab.fr
Thu Dec 14 12:07:06 CET 2006


On Wed, Dec 13, 2006 at 10:19:23PM +0000, Michael Foord wrote:

> >     def __pylint_hint( self ):
> >         assert isinstance( self.some_object, some_module.SomeClass )
> >   
> This is how the Wing  IDE does code completion (where it can't divine
> the type).
> 
> Personally I don't like the idea of adding to production code just to
> help PyLint or my IDE, but many people like it.

FWIW, I do not like the idea of adding things to production code to
help pylint, except adding things like comments (as in pylint-disable)
or items in docstrings (as in the contracts in logilab-aspects).

-- 
Nicolas Chauvat

logilab.fr - services en informatique avancée et gestion de connaissances  


More information about the Python-Projects mailing list