python / python/typeshed

Drop support for Python 3.10 (around January/April 2027)

Đang mở
#15,586 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

stubs: removal
Ngôn ngữ chính
Python
Star
5.1k
Fork
2.1k
Merge trung bình
1 ngày 19 giờ
Pull request đã merge (30 ngày)
82

Mô tả

Python 3.10 is expected to reach its end-of-life phase in October 2026 (PEP 619). We will remove support in two steps, approximately three and six months after it reached EOL.

How to remove support

Expected January 2027
  • Update the version in README.md.
  • Update various fields in pyproject.toml.
  • Remove 3.10 from CI and test scripts.
  • Update stubtest allow lists. Also check whether items can be moved to the common allow lists.
  • Remove requires-python >= 3.11 and python-version >= 3.11 from METADATA.toml.
  • Remove the version suffix from regression tests ending with -py311.py.
  • Remove tomli from requirements-tests.txt.
Expected April 2027
  • Remove 3.10 exclusive branches from stubs.
    • Switch EnumType/EnumMeta names in stdlib/enum.pyi, making EnumType the "real" name
  • Remove obsolete stdlib modules (see VERSIONS).
    • binhex
    • distutils.command.bdist_msi
  • Replace typing_extensions imports.
    • TypeVarTuple
    • Required/NotRequired
    • Self
    • LiteralString
    • dataclass_transform
  • Update "Supported type system features" section in CONTRIBUTING.md as necessary.

(Please amend as necessary.)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với checklist tháng 1 năm 2027 trong README.md, pyproject.toml, CI và các tập lệnh kiểm thử, các danh sách cho phép của stubtest, METADATA.toml, các kiểm thử hồi quy và requirements-tests.txt. Sau đó xem lại checklist tháng 4 trong stdlib/enum.pyi, VERSIONS, các stub bị ảnh hưởng và CONTRIBUTING.md. Hoàn tất có nghĩa là hỗ trợ Python 3.10 được gỡ bỏ trong cả hai giai đoạn, đồng thời các kiểm thử và metadata liên quan được cập nhật.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
documentation, testing-qa, tooling
Loại issue
Tái cấu trúc
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.