Pluralize term when n is greater than one.
(n: float, text: str, suffix: str = 's')
| 94 | |
| 95 | |
| 96 | def pluralize(n: float, text: str, suffix: str = 's') -> str: |
| 97 | """Pluralize term when n is greater than one.""" |
| 98 | if n != 1: |
| 99 | return text + suffix |
| 100 | return text |
| 101 | |
| 102 | |
| 103 | def pretty(value: str, width: int = 80, nl_width: int = 80, sep: str = '\n', ** |
no outgoing calls
no test coverage detected