Suggest type annotations for partial types spanning multiple scopes

Đang mở
#4,703 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.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reading the fine-grained incremental mode work in issue #4553 and the original discussion in issue #4492, especially the linked comment. Determine the common cases where partial types span multiple scopes, then define and implement annotation suggestions whose output can be validated against those cases.

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

Mô tả

feature priority-2-low topic-fine-grained-incremental

We don't support inferring partial types from multiple scopes in fine-grained incremental mode (#4553), but this works in other modes. Migrating to fine-grained incremental mode will often require adding some annotations. It would make sense to automatically generate suggestions for the type annotations (at least in many common cases) to simplify the migration.

Original issue with discussion: #4492, especially https://github.com/python/mypy/issues/4492#issuecomment-360915585

Ngôn ngữ chính
Python
Star
20.6k
Fork
3.3k
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
54

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.

Issue khác của python/mypy

Tất cả issue của python/mypy

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.