Skip to content

New crash since 24.9.5 #322

Closed
Closed

Description

@Zac-HD
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

Activity

  1. added
    bug
    on Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions