-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
When from __future__ import with a wrong name, maybe it is a typo. We can suggest a possible name. Just like:
>>> from __future__ import annotation
File "<python-input-0>", line 1
from __future__ import annotation
^^^^^^^^^^
SyntaxError: future feature 'annotation' is not defined. Did you mean: 'annotations'?One possible way is just read the line and analyse.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement