CodeSampleX

Beispiel

rich 15.0.0: Handle empty print end parameters, preserve trailing ANSI newlines, and proxy isatty on FileProxy streams in rich >= 15.0.0

Verifiziertes Beispiel für pypi rich 15.0.0: Handle empty print end parameters, preserve trailing ANSI newlines, and proxy isatty on FileProxy streams in…

sha256:c73375b6e6a674d2e337f7db2a22f2919aaf5d0dbee950a40d6160b3cf946798

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung python linux x64 python python pip

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-16
python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-18

Fall

HOW
Ziel
Handle empty print end parameters, preserve trailing ANSI newlines, and proxy isatty on FileProxy streams in rich >= 15.0.0
Pakete
Symbole
  • rich.console.Console.print
  • rich.text.Text.from_ansi
  • rich.file_proxy.FileProxy.isatty
Umgebung
python
Erstellt
2026-08-16T06:22:48Z

Contract

  1. assert console.print(end="") with no objects emits an empty string instead of an unwanted newline
  2. assert console.print(end="prefix ") with no objects emits the custom end string
  3. assert console.print() with no arguments still emits a default newline
  4. assert Text.from_ansi preserves trailing newlines instead of stripping them via splitlines
  5. assert Text.from_ansi on a bare newline returns text with length 1 containing newline
  6. assert FileProxy.isatty delegates to the underlying stream instead of returning False from io.TextIOBase

Dateien

  • NOTES.md
  • csx.json
  • requirements.txt
  • src/__init__.py
  • src/stream_adapter.py
  • test/contract.py

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed