Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/probberechts/soccerdata
/ _as_int
Function
_as_int
soccerdata/understat.py:750–754 ·
view source on GitHub ↗
(value: Any)
Source
from the content-addressed store, hash-verified
748
749
750
def
_as_int(value: Any) -> Optional[int]:
751
try
:
752
return
int(value)
753
except
(TypeError, ValueError):
754
return
None
755
756
757
def
_as_str(value: Any) -> Optional[str]:
Callers
5
read_schedule
Method · 0.85
read_team_match_stats
Method · 0.85
read_player_season_stats
Method · 0.85
read_player_match_stats
Method · 0.85
read_shot_events
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected