Source code hyperqueue/utils/string.py

1
2
3
4
def pluralize(text: str, count: int) -> str:
    if count == 1:
        return text
    return f"{text}s"