Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/It4innovations/hyperqueue
/ pluralize
Function
pluralize
crates/pyhq/python/hyperqueue/utils/string.py:1–4 ·
view source on GitHub ↗
(text: str, count: int)
Source
from the content-addressed store, hash-verified
1
def
pluralize(text: str, count: int) -> str:
2
if
count == 1:
3
return
text
4
return
f
"{text}s"
Callers
3
submit
Method · 0.50
wait_for_jobs
Method · 0.50
cb
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected