Closed
Description
Feature or enhancement
While reading new ruff release notes: https://astral.sh/blog/ruff-v0.4.0 I found that it has a new nice parser feature that we can addopt. Before:
>>> from x import
File "<stdin>", line 1
from x import
^
SyntaxError: invalid syntax
>>> from . import
File "<stdin>", line 1
from . import
^
SyntaxError: invalid syntax
>>> from x import
File "<stdin>", line 1
from x import
^
SyntaxError: Expected one or more names after 'import'
>>> from . import
File "<stdin>", line 1
from . import
^
SyntaxError: Expected one or more names after 'import'
>>>
I have a PR ready :)