Documented integer in-place multiplication raises TypeError; empty composed repetitions lose keys

Offen
#109 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

  • #110 von @nawaaaaaAaar — ohne Merge geschlossen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Python
Sterne
87
Forks
53
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus matplotlib/cycler

Alle Issues in matplotlib/cycler

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.