Describe the bug
Some variables are not renamed in "Rename Symbol" functionality.
Screenshots or Code


Expected behavior
cnt += 1
After rename symbol
count += 1
VS Code extension or command-line
VS Code 1.37.1
Pyright 1.0.57
Additional context
Using find all references functionality shows the same result as the issue description

But it's correct if triggered from this cursor location:

I think it's might be related to the behavior of += operator.
codes:
def rename_test():
cnt = 1
while True:
cnt += 1
if cnt > 5:
break
Thanks for the bug report. This will be fixed in the next release.
This bug is now fixed in 1.0.58, which I just published.
Most helpful comment
This bug is now fixed in 1.0.58, which I just published.