Helper to pluralise the number of items in a list.
(items: list | dict)
| 1706 | |
| 1707 | |
| 1708 | def _n_items(items: list | dict) -> str: |
| 1709 | """ |
| 1710 | Helper to pluralise the number of items in a list. |
| 1711 | """ |
| 1712 | n = len(items) |
| 1713 | s = "" if n == 1 else "s" |
| 1714 | return f"{n} item{s}" |
| 1715 | |
| 1716 | |
| 1717 | class OutputChecker: |
no outgoing calls
no test coverage detected
searching dependent graphs…