Closed pylint-bot closed 8 years ago
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
This sounds like a good idea in general, but it should be a refactoring message rather than a warning. It should verify only when the assignment is at a class scope and only if the classmethod's argument belongs to the class where it is defined. That's because we can use something like this for satisfying an API:
#!python
class MyClass(SomeBaseClass):
_make = classmethod(tuple.__new__)
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
Originally reported by: Laura Médioni (BitBucket: lmedioni, GitHub: @lmedioni?)
Emit a warning when a static method or a class method is declared without using decorators syntax.
Example:
should trigger a warning