MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / _num

Function _num

app/core/settings.py:77–78  ·  view source on GitHub ↗
(v: object)

Source from the content-addressed store, hash-verified

75
76
77def _num(v: object) -> int | None:
78 return int(v) if isinstance(v, (int, float)) and not isinstance(v, bool) else None
79
80
81# ── allow_network ──

Callers 3

get_max_duration_secFunction · 0.85
get_video_max_heightFunction · 0.85
get_portFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected