diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-03-28 22:21:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 22:21:59 +0200 |
commit | d429822d56c392b4be914f94d55807b55efbd705 (patch) | |
tree | 9186dc4926ed5c65b10e9c7bb1fa5fc6a30c0275 /doc | |
parent | ebf1952eb5b4bac46751d91181a62bea4bd6599f (diff) | |
download | pylint-git-d429822d56c392b4be914f94d55807b55efbd705.tar.gz |
Fix `unnecessary-lambda` false positive for lambdas using its parameters in their body (#8498) (#8506)
Fixes #8496
(cherry picked from commit b62143611a4713e4729ce9ecb6398f5f94d82f1a)
Co-authored-by: cherryblossom <31467609+cherryblossom000@users.noreply.github.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/whatsnew/fragments/8496.false_positive | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/whatsnew/fragments/8496.false_positive b/doc/whatsnew/fragments/8496.false_positive new file mode 100644 index 000000000..3ea0fca6c --- /dev/null +++ b/doc/whatsnew/fragments/8496.false_positive @@ -0,0 +1,5 @@ +``unnecessary-lambda`` no longer warns on lambdas which use its parameters in +their body (other than the final arguments), e.g. +``lambda foo: (bar if foo else baz)(foo)``. + +Closes #8496 |