pylint-bot / pylint-unofficial

UNOFFICIAL playground for pylint github migration
0 stars 0 forks source link

False positive with undefined-variable with regard to lambda lookups in class scope #704

Open pylint-bot opened 8 years ago

pylint-bot commented 8 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


#!python

class C:
    foo = 1
    bar = lambda: C.foo

E:  3,18: Undefined variable 'C' (undefined-variable)

Originally reported in #342.