Describe the Bug
Some generators with send incorrectly report that sent variables are unused
from typing import Generator, cast
def test() -> Generator[float, float]:
"""absolute difference first last step"""
new = yield None
while True:
new = yield new - 1 # `Variable `new` is unusedPyrefly(unused-variable)`
This can't be seen in the sandbox, but in vs code
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response