The following forum message was posted by rsflux at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4052665:
I am curious if there is any support for exceptions to the static analyzer for metaclasses. I have some code that looks like the following: [code]class MetaClass(type): def __call__(cls, *args, **kwargs): pass[/code] PyDev highlights __call__ with an error of "should have self as first parameter.", but that is not the general "pythonic" pattern followed with metaclasses. I know that I can #@NoSelf the line, but that creates extra clutter that I would like to avoid. Does PyDev have any support for different rulesets with metaclasses? If the static analyzer is not able to determine what classes are actually metaclasses, I would find marking up the class definition with an #@IsMetaclass comment preferable to #@NoSelf'ing each method definition. Would this be a reasonable solution? -Ryan ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users