Open qarmin opened 1 year ago
It's the line continuation character which is creating this issue. There are 2 visible newlines but the first one is escaped so there's actually only 1 which gets removed. So, the token stream would produce a string and then directly the if
token which is an invalid syntax.
Ruff 0.0.287 (latest changes from main branch)
file content(at least simple cpython script shows that this is valid python file):
error
python_compressed.zip