| --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 |
| appeared in | <not specified> |
| done in | 0.21.2 |
| load left | 0.000 |
| closed by | <not specified> |


#28739 Directive within else block is ignored
Comments
-
2010/08/18 03:10, written by anon
| reply to this comment
(add comment)The 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.