Variable wrongly marked as not used for walrus operator

Please make sure to read this post before raising a thread here:

Specifically, we’re missing what products/versions you’re using