[Python-projects] Can pylint be informed that a method is called by
AClass.__init__ () ?
Pierre_Rouleau at ImpathNetworks.com
Pierre_Rouleau at ImpathNetworks.com
Wed May 17 20:39:44 CEST 2006
Bonjour à tous,
Pylint (the latest, and previus) generates a W0201 warning when a instance
attribute is created outside of the class __init__() method even if that method
is called from __init__().
I do not want to disable that warning in that particular case.
Is there a way I can tell Pylint that method xxxx() is called from __init__() so
it should not complain that xxxx() creates instance attributes? There are cases
where it is nice to have one or several methods that create instance attributes
to clarify the source.
Thanks!
Pierre Rouleau.
More information about the Python-Projects
mailing list