pylint #28796 regression in --generated-members in pylint 0.20 [open]
--generated-members is ignored in 0.20, this was fully working before in 0.19. How to reproduce: ttest.py: a = "a" a.id Then run pylint 0.20 with: # pylint --generated-members="id" ttest pylint reports errors about id now, while it shouldn't. When this is run with 0.19, id is ignored. | |
priority | normal |
---|---|
type | bug |
done in | 0.21.2 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2010/08/18 01:10, written by anon
add commentThe fix is really easy:
change line 126 of checkers/typecheck.py, line 126 from:
node.attrname in self.generated_members
to:
node.attrname in self.config.generated_members
The problem is that self.generated_members is set in the __init__, which is called before the config is loaded.