With the code from PR 122564, no branches are indicated for an async for. In the example below, both branches for the if also unexpectedly present (through co_locations) as "going out of scope":
importasyncioasyncdefg():
yield1yield2x=0asyncdeffun():
globalxasyncforving(): # line 11ifv>0:
x+=vx+=3print(x)
asyncio.run(fun())
Activity