the type should fit on one line to render fine in the doc

I would write

```
sparse_format : 'csr' | 'csc' | 'dense' | list
    ...
    if is list ...
```