Skip to content

Single-item collections display as "1 items" instead of "1 item" #2668

@anjiro

Description

@anjiro

Describe the bug

Input: [1]

Output:

[ 1 Items
  0: 1
]

It should say 1 Item instead.

Environment

{
"marimo": "0.9.10",
"OS": "Darwin",
"OS Version": "23.6.0",
"Processor": "arm",
"Python Version": "3.11.2",
"Binaries": {
"Browser": "129.0.6668.101",
"Node": "v22.9.0"
},
"Dependencies": {
"click": "8.1.3",
"importlib-resources": "missing",
"jedi": "0.18.2",
"markdown": "3.5.2",
"pygments": "2.14.0",
"pymdown-extensions": "10.7",
"ruff": "0.0.292",
"starlette": "0.36.1",
"tomlkit": "0.12.3",
"typing-extensions": "4.9.0",
"uvicorn": "0.27.0.post1",
"websockets": "12.0"
},
"Optional Dependencies": {
"pandas": "2.0.2",
"polars": "0.19.12"
}
}

Code to reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamLikely out of marimo's control. Coming from an upstream dep

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions