Suggest a future feature name in `from __future__ import`
Đang mở
@sobolevn đang làm issue này rồi.
Từ ngày 21/7/2026.
interpreter-core
topic-parser
type-feature
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 35.9k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
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
Linked PRs
- gh-154347
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.