Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dizzy-K/AutoPT
/ _int_or_none
Function
_int_or_none
analysis/loader.py:386–392 ·
view source on GitHub ↗
(value: Any)
Source
from the content-addressed store, hash-verified
384
385
386
def
_int_or_none(value: Any) -> int | None:
387
if
value in (
""
, None):
388
return
None
389
try
:
390
return
int(value)
391
except
(TypeError, ValueError):
392
return
None
Callers
2
_normalize_task_result
Function · 0.85
_normalize_legacy_result
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected