MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _to_positive_int

Function _to_positive_int

deployments/desktop/shared/agents.py:141–146  ·  view source on GitHub ↗
(value: Any, default: int)

Source from the content-addressed store, hash-verified

139 return default
140
141
142def _to_positive_int(value: Any, default: int) -> int:
143 try:
144 parsed = int(float(value))
145 except (TypeError, ValueError):
146 parsed = default
147 return max(1, parsed)
148
149

Callers 1

_configured_daily_limitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected