Closed Zac-HD closed 5 months ago
import trio async def fn(): try: while True: try: await trio.sleep(1) except Exception: pass except Exception: pass
triggers
File ".../flake8_async/visitors/visitor91x.py", line 346, in check_function_exit assert not isinstance(original_node, cst.FunctionDef) AssertionError
it's not isolated to ASYNC900, it also happens with 910 or 911.
EDIT: no it's for 910 and 911. I thought it was weird an error in visitor91x was caused by 900
triggers