diff options
| author | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-02-26 17:19:51 -0700 |
|---|---|---|
| committer | Bryce Guinta <bryce.paul.guinta@gmail.com> | 2018-03-03 01:10:02 -0700 |
| commit | 2746fe3a0faaf7bc5cd002af9408460f383d867b (patch) | |
| tree | a07d111d35a9f2820400ce4e6bc007732c805231 /doc | |
| parent | fbb93327a3e85a3c4661261c0bd6a0735a53acf7 (diff) | |
| download | pylint-git-2746fe3a0faaf7bc5cd002af9408460f383d867b.tar.gz | |
Check if node is in list comprehension in function defaults
List comprehensions in python 2 do not have scope. If the local scope is
skipped, then generated variables values will raise a false-positive.
Close #1897
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/whatsnew/1.8.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/whatsnew/1.8.rst b/doc/whatsnew/1.8.rst index 7cf3b354b..d78ac081f 100644 --- a/doc/whatsnew/1.8.rst +++ b/doc/whatsnew/1.8.rst @@ -388,3 +388,6 @@ Other Changes * Fix false positive ``undefined-variable`` for lambda arguments in class definitions + +* Fix false-positive ``undefined-variable`` for generated + comprehension variables in function default arguments |
