Helper to pluralise the number of items in a list.
(items: list | dict)
| 1679 | |
| 1680 | |
| 1681 | def _n_items(items: list | dict) -> str: |
| 1682 | """ |
| 1683 | Helper to pluralise the number of items in a list. |
| 1684 | """ |
| 1685 | n = len(items) |
| 1686 | s = "" if n == 1 else "s" |
| 1687 | return f"{n} item{s}" |
| 1688 | |
| 1689 | |
| 1690 | class OutputChecker: |