New semanal: Spurious "Missing return statement" in async function #7058
Labels
bug
mypy got something wrong
false-positive
mypy gave an error on correct code
priority-0-high
semantic-analyzer
Problems that happen during semantic analysis
The second error is #7057, but the first error goes away if I fix that error (by removing the nonlocal or moving the
running = True
above the nested function).I ran into this issue in two places in my code. I minimized the other one to this:
Here too there is an unrelated error that has to trigger for the "Missing return statement" to appear. The original code actually had no errors, though.
The text was updated successfully, but these errors were encountered: