From 27e3624d86e5a49a5cbbdc72990ede8c0ff65376 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 10 Feb 2023 07:42:38 +0100 Subject: Fix `used-before-assignment` false positive for walrus operator in dictionary (#8176) (#8254) (cherry picked from commit 32e1545efac4f8b3b1c7b6b3efa160d1cb4f4046) Co-authored-by: Zen Lee <53538590+zenlyj@users.noreply.github.com> --- doc/whatsnew/fragments/8125.bugfix | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/whatsnew/fragments/8125.bugfix (limited to 'doc') diff --git a/doc/whatsnew/fragments/8125.bugfix b/doc/whatsnew/fragments/8125.bugfix new file mode 100644 index 000000000..bb7860f92 --- /dev/null +++ b/doc/whatsnew/fragments/8125.bugfix @@ -0,0 +1,4 @@ +Fix ``used-before-assignment`` false positive when the walrus operator +is used with a ternary operator in dictionary key/value initialization. + +Closes #8125 -- cgit v1.2.1