Documented integer in-place multiplication raises TypeError; empty composed repetitions lose keys
Chưa có ai nhận issue này.
- #110 của @nawaaaaaAaar — đã đóng, không merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by locating the cycler implementation and its tests for integer multiplication, in-place multiplication, empty cycles, and composition; the payload does not name specific files. Reproduce styles *= 2 and (cycler(color=["r", "b"]) + cycler(lw=[1, 2])) * 0. Done when both cases work and zero-count results preserve the declared property keys, with regression coverage for the reported behaviors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
On unchanged upstream d1737eb0a42bd451e8770cef245ebe60ebb36bfc, styles = cycler(color=["red", "blue"]); styles *= 2 raises TypeError although ordinary styles * 2 works and the class documents integer multiplication plus its in-place form. This affects extending configured plotting style cycles without rebinding shared references. Zero/negative counts additionally expose an empty-result prerequisite: (cycler(color=["r", "b"]) + cycler(lw=[1, 2])) * 0 raises StopIteration rather than producing an empty cycle with the same property keys. The declared key metadata should survive empty copies and composition. Nineteen final regression cases fail before the proposed implementation change; two existing-behavior controls pass. Investigated with AI assistance; no personal account-owner review or attestation is asserted.
- Ngôn ngữ chính
- Python
- Star
- 87
- Fork
- 53
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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.
Issue khác của matplotlib/cycler
-
Enable or remove AppVeyor testsĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
matplotlib/cycler#94 · 1 bình luận ·
-
Add cycles of differing lengthsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
matplotlib/cycler#41 · 10 bình luận · 5 reaction ·
-
Pseudo-infinite cycleĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
matplotlib/cycler#30 · 1 bình luận ·
-
Allow getitem from a cyclerĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
matplotlib/cycler#27 · 4 bình luận ·
-
make a .mailmap fileĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
matplotlib/cycler#17 ·
Tất cả issue của matplotlib/cycler
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
nael5x/creative-ai#130 ·
-
Make the "%" unit spacing the same in the web and in A10Có thể đã có người làm @kragent66-glitch đã nhận hôm nay. Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 bình luận ·
-
ci severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TMHSDigital/Spackle#205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pkg:lgm type:chore upstream-gaussx
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jejjohnson/pyrox#610 ·
Maintainer thường phản hồi trong vòng 1 ngày