On 17 septembre 19:18, Huurne, Maarten ter wrote: > Hi, Hi Maarten, > The new pylint and astng releases solved most of the remaining false > positives on our project. Thanks for the fixes! > > One of the false positives that remains is the following one: > > === > class SomeProperty(object): > > def __get__(self, obj, objtype = None): > if obj is None: > return self > else: > return getattr(obj, 'thingy') > > def __set__(self, obj, value): > raise AttributeError('attempt to set unmodifiable property') > > def __delete__(self, obj): > raise AttributeError('attempt to remove unmodifiable > property') > === > W0613: 12:SomeProperty.__delete__: Unused argument 'obj' > === > > I wonder why __get__ and __set__ also have unused arguments and are not > flagged by W0613 but __delete__ is?
because __delete__ was missing of the 'special methods' list. Fixed. thx -- Sylvain Thénault LOGILAB, Paris (France) 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 Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects