← Back to issue list

`humanize_list` output is incorrect when list contains only one item

View original Github issue

Metadata

Project
craft-cli
Number
#412
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
2026-01-22 22:08:31+00:00
Updated
2026-04-22 11:15:07+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description When `humanize_list` is run with only a single item, it returns an invalid value. ``` >>> craft_cli.utils.humanize_list(['1']) ', and 1' ``` ### To Reproduce ``` craft_cli.utils.humanize_list(['1']) ``` ### part yaml ```shell ``` ### Relevant log output ```shell n/a ```

Evaluation history

No evaluation history available.