Detect unawaited coroutines
Author: alekssamosCreated Feb 5, 2024Updated Sep 14, 2026
Labelsruletype-inference
Hello. I fixed my code via ruff. Applied fix and unsafe fixes. But ruff did not find one error. I forgot to write await when calling an asynchronous function. Accordingly, I received RuntimeWarning never awaited... e.g.
async def another():
...
async def main():
result = another()
Is there any way to do this, and if not, will it be taken into account in the new versions of ruff?
Source: astral-sh/ruff