[Python-projects] Supress checknig of imported module?
Dalton, Tom
tom.dalton at eds.com
Thu Nov 20 15:22:24 CET 2008
Hi,
I'm using omniORBpy to make remote calls on a server. The omniIDL compiler generates python modules that set themselves up dynamically when they are imported. So when I import the generated file into my code and run pylint, it moans all over the place that the imported module does not have the attributes that i'm using.
For example, if I have code something like:
import omniDerivedThing
val = omniDerivedThing.anEnumConstant
Then pylint will show an E1101 'object omniDerivedThing has no attribute anEnumConstant'
As you can imagine, this gets rather annoying when I use omniDerivedThing a lot. I don't want to globally supress E1101 and I dont want to supress the error on ever line where I use omniDerivedThing. Is there a way to tell pylint to ignore a particular imported module? I looked at the --ignore= command line option but that didn't seem to work - I assume that just prevents pylinting that file, rather than things that are using that file.
Any help gratefully received!
- Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20081120/b693218c/attachment.htm
More information about the Python-Projects
mailing list