MCPcopy
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
750def _as_int(value: Any) -> Optional[int]:
751 try:
752 return int(value)
753 except (TypeError, ValueError):
754 return None
755
756
757def _as_str(value: Any) -> Optional[str]:

Callers 5

read_scheduleMethod · 0.85
read_team_match_statsMethod · 0.85
read_shot_eventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected