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

New crash since 24.9.5 #322

Closed
Zac-HD opened this issue Nov 18, 2024 · 0 comments · Fixed by #323
Closed

New crash since 24.9.5 #322

Zac-HD opened this issue Nov 18, 2024 · 0 comments · Fixed by #323
Assignees
Labels
bug Something isn't working

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Nov 18, 2024

from contextlib import asynccontextmanager

@asynccontextmanager
async def fn():
    async with a().b():
        yield

crashes with

...
  File ".../python3.11/site-packages/flake8_async/visitors/visitor91x.py", line 522, in visit_With_body
    self._checkpoint_with(node)
  File ".../python3.11/site-packages/flake8_async/visitors/visitor91x.py", line 511, in _checkpoint_with
    assert func is not None
           ^^^^^^^^^^^^^^^^
AssertionError

in 24.11.1; fine in 24.9.5

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