Files
vscode/extensions/copilot/test/simulation/fixtures/notebook/fixing/fixing4.ipynb
T
kieferrmandcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> 333d9a4053 Hello Copilot
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-06-27 11:35:20 +02:00

695 B

In [ ]:
# This same tests the type checker's ability to validate
# types related to coroutines (and async/await) statements.

from typing import Generator, Any, Optional


async def coroutine1():
    return 1


a = coroutine1()

# This should generate an error because 'await'
# can't be used outside of an async function.
await a