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

ASYNC121 false alarm in nested async function definition #286

Closed
Zac-HD opened this issue Sep 7, 2024 · 0 comments · Fixed by #287
Closed

ASYNC121 false alarm in nested async function definition #286

Zac-HD opened this issue Sep 7, 2024 · 0 comments · Fixed by #287
Assignees

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Sep 7, 2024

import trio

async def fn():
    async with trio.open_nursery():

        def foo():
            return  # safe, no lint warning

        async def bar():
            await trio.lowlevel.checkpoint()
            return  # false alarm ASYNC121

follows #261, #282; should be a pretty quick fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants