-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I tried running ruff on a large project, which resulted in this crash:
[2022-08-31][10:33:40][ruff][ERROR] Failed to check repr-with.py: invalid syntax. Got unexpected token 'as' at line 9 column 13
It seems like the crash happens on parenthesized context managers introduced in Python 3.10. Minimal reproducible example:
from contextlib import contextmanager
@contextmanager
def ctx():
yield
with (ctx() as foo):
...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working