Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

review and fix deprecated typing aliases

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
68/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

The two examples are ast.py (line 14) and base.py (line 25), and the issue asks for a sweep of the whole codebase. Start by grepping for from typing import to find every deprecated alias such as List, Tuple, Iterator and Sequence. Replace them with built-in generics or collections.abc imports, and leave Optional and Union alone unless the maintainers decide otherwise. Done means no deprecated typing imports remain in the touched files and the existing test suite still passes.

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

Mô tả

Codebase uses deprecated typing imports.

Ex. 1: ast.py L14: from typing import List, Optional, Union, Tuple
List and Tuple could be replaced with built-ins, and arguably Union could be replaced with | and Optional could be reveiwed.

Ex. 2: base.py L25: from typing import Iterator, Optional, Sequence, TypeVar
Iterator and Sequence should be imported from collections.abc.

Ngôn ngữ chính
Python
Star
29
Fork
33
Merge trung bình
2 ngày 4 giờ
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

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.

Issue khác của qBraid/pyqasm

Tất cả issue của qBraid/pyqasm

Issue tương tự

Thêm issue về Python

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.