Convert table column contents to string
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start in cleo/helpers/table.py, specifically _build_table_rows() around the reported line, and reproduce the failure with None or an object such as pendulum or a money value. The work is done when table cells containing these values render through string conversion without the TypeError; the custom-formatter alternative remains an unresolved scope question.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
When adding columns with None or more complex contents (pendulum, money objects), they should automatically be converted using str(…), as this currently breaks in weird ways:
~/.virtualenvs/buchhaltung/lib/python3.5/site-packages/cleo/helpers/table.py in _build_table_rows() at line 301
if '\n' not in cell:
[TypeError]
argument of type 'NoneType' is not iterable
Another possibility might be to specify custom formatters (probably somewhere next to defining table headers)?
- Vorherrschende Sprache
- Python
- Sterne
- 1.4k
- Forks
- 108
- Ø Merge
- 15 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python-poetry/cleo
-
question
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#471 · 2 Kommentare ·
-
feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#467 · 1 Reaktion ·
-
Poetry run doesn't work with --directory=Evtl. vergeben @DSeaStar hat das vor 85 Tagen übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
python-poetry/cleo#434 · 1 Kommentar ·
-
feature
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
python-poetry/cleo#433 · 4 Kommentare ·
-
Formatter's `is_decorated` property is temporarily disabled during `remove_format` breaking concurrent threadsEvtl. vergeben @ShipItAndPray hat das vor 195 Tagen übernommen. Offenbug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 40/100
python-poetry/cleo#423 · 9 Kommentare ·
Alle Issues in python-poetry/cleo
Ähnliche Issues
-
ChatBedrockConverse changes the keys of JSON tool results to camelCase (`order_id` becomes `orderId`)Evtl. vergeben @geyazheng hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
langchain-ai/langchain-aws#1469 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
EESSI/docs#949 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
b4b usability
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
fix(schedule): align list_tasks since cursor filter boundary from strict > to >=Evtl. vergeben @bfs2021 hat das heute übernommen. Offenagent-ready bug p2 schedule
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
allenporter/supernote#540 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
frazane/scoringrules#164 ·
Maintainer antworten meist innerhalb von 1 Tag