Documented integer in-place multiplication raises TypeError; empty composed repetitions lose keys
還沒有人認領這個 Issue。
- #110 來自 @nawaaaaaAaar —— 已關閉,未合併
評估
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Python
- 星號
- 87
- 分支
- 53
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
matplotlib/cycler 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 35/100
matplotlib/cycler#94 · 1 則留言 ·
-
難度 5/5 一週以上 新手友好度 25/100
matplotlib/cycler#41 · 10 則留言 · 5 個 reaction ·
-
難度 5/5 一週以上 新手友好度 35/100
matplotlib/cycler#30 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 38/100
matplotlib/cycler#27 · 4 則留言 ·
-
難度 1/5 1 小時以內 新手友好度 35/100
matplotlib/cycler#17 ·
查看 matplotlib/cycler 的全部 Issue
相似的 Issue
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线未關閉documentation
難度 2/5 1-3 小時 新手友好度 62/100
vllm-project/vllm-ascend#24429 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 67/100
nq-rdl/agent-extensions#623 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
vortex-data/vortex#12633 ·
維護者通常 1 天內回覆
-
needs-triage
難度 2/5 1-3 小時 新手友好度 78/100
gke-labs/kube-agents#7955 ·
維護者通常 1 天內回覆