Convert table column contents to string
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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)?
- Lingua principale
- Python
- Stelle
- 1.4k
- Fork
- 103
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-poetry/cleo
-
question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#471 · 2 commenti ·
-
feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#467 · 1 reazione ·
-
Poetry run doesn't work with --directory=Forse già presa @DSeaStar l’ha presa 56 giorni fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
python-poetry/cleo#434 · 1 commento ·
-
Support for clink completionApertafeature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-poetry/cleo#433 · 4 commenti ·
-
Formatter's `is_decorated` property is temporarily disabled during `remove_format` breaking concurrent threadsForse già presa @ShipItAndPray l’ha presa 165 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 40/100
python-poetry/cleo#423 · 9 commenti ·
Tutte le issue di python-poetry/cleo
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
UKGovernmentBEIS/inspect_ai#5802 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
no-human-ai/no_human#660 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
documentation need help question
Difficoltà 1/5 1-3 ore Idoneità per principianti 66/100
phonology024/babelscribe#26 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100