pylint #5626 name resolution bug inside classes [resolved]
I noticed that pylint is not accepting the use of class members as arguments to decorators inside the class, example:
def decorator(value): def wrapper(function): return function return wrapper class foo: member = 10 @decorator(member) #This will cause pylint to complain def test(self): pass
pylint will complain about "Undefined variable 'member'"
@decorator(foo.member) def test(self): pass
Will work according to pylint.
However the first case works in python while the second one doesn't.
|closed by||<not specified>|