Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUF029 trigger errors on async interators #11043

Closed
Greesb opened this issue Apr 19, 2024 · 2 comments · Fixed by #11070
Closed

RUF029 trigger errors on async interators #11043

Greesb opened this issue Apr 19, 2024 · 2 comments · Fixed by #11070
Labels
bug Something isn't working

Comments

@Greesb
Copy link

Greesb commented Apr 19, 2024

Here's a sample code for reproduction:

async def test():
    return [check async for check in async_func()] 

Error:
RUF029 Function `test` is declared `async`, but doesn't `await` or use `async` features.

@charliermarsh charliermarsh added the bug Something isn't working label Apr 20, 2024
@charliermarsh
Copy link
Member

Thanks!

@charliermarsh
Copy link
Member

\cc @plredmond

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants