functools.update_wrapper breaks the signature of functools.partial objects
Đang mở
Chưa có ai nhận issue này.
stdlib
type-bug
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 36k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 558
Mô tả
| BPO | 46761 |
|---|---|
| Nosy | @ncoghlan, @larryhastings, @1st1, @isidentical, @ofey404 |
| PRs | |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = None
created_at = <Date 2022-02-15.18:06:14.844>
labels = ['type-bug', '3.8', '3.9', '3.10', '3.11', '3.7', 'library']
title = 'functools.update_wrapper breaks the signature of functools.partial objects'
updated_at = <Date 2022-03-26.12:36:12.144>
user = 'https://github.com/larryhastings'
bugs.python.org fields:
activity = <Date 2022-03-26.12:36:12.144>
actor = 'ncoghlan'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2022-02-15.18:06:14.844>
creator = 'larry'
dependencies = []
files = ['50625', '50639']
hgrepos = []
issue_num = 46761
keywords = ['patch']
message_count = 21.0
messages = ['413299', '413557', '413688', '413778', '413814', '413833', '413876', '413896', '414175', '414176', '414638', '414890', '414937', '415024', '415025', '416023', '416024', '416025', '416028', '416031', '416060']
nosy_count = 7.0
nosy_names = ['ping', 'ncoghlan', 'larry', 'grahamd', 'yselivanov', 'BTaskaya', 'ofey404']
pr_nums = ['31529']
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46761'
versions = ['Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']
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.
Hướng nghiên cứu
Xem xét PR #31529 và hai tệp kiểm thử được liên kết, update_wrapper.breaks.partial.signature.test.py và update_wrapper.breaks.partial.signature.check.wrapped.py. Trước tiên, hãy tái hiện hành vi chữ ký của functools.partial được mô tả trong tiêu đề, sau đó dùng các bài kiểm thử để xác minh rằng update_wrapper không còn làm hỏng hành vi đó.
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
- backend
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100