diff options
author | Zen Lee <53538590+zenlyj@users.noreply.github.com> | 2023-01-08 21:40:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 14:40:05 +0100 |
commit | 6ac908ffe04e18b62419dabac9686b107bee278d (patch) | |
tree | f72a580fbb5d268c9c59abe6ac7428bd902984de /tests/functional/u/used/used_before_assignment_ternary.txt | |
parent | 91513a09513c7cc54e78f38999aa5fda4c77625d (diff) | |
download | pylint-git-6ac908ffe04e18b62419dabac9686b107bee278d.tar.gz |
Fix `used-before-assignment` false positive for walrus operators in ifs (#8029)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/functional/u/used/used_before_assignment_ternary.txt')
-rw-r--r-- | tests/functional/u/used/used_before_assignment_ternary.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/u/used/used_before_assignment_ternary.txt b/tests/functional/u/used/used_before_assignment_ternary.txt new file mode 100644 index 000000000..d991970e4 --- /dev/null +++ b/tests/functional/u/used/used_before_assignment_ternary.txt @@ -0,0 +1,3 @@ +used-before-assignment:6:14:6:15:invalid:Using variable 'a' before assignment:HIGH
+used-before-assignment:8:14:8:15:invalid:Using variable 'b' before assignment:HIGH
+used-before-assignment:9:10:9:11:invalid:Using variable 'c' before assignment:HIGH
|