MCPcopy Create free account
hub / github.com/EdupageAPI/edupage-api / parse_int

Method parse_int

edupage_api/module.py:35–39  ·  view source on GitHub ↗
(val: str)

Source from the content-addressed store, hash-verified

33
34 @staticmethod
35 def parse_int(val: str) -> Optional[int]:
36 try:
37 return int("".join(filter(str.isdigit, val)))
38 except ValueError:
39 return None
40
41 """
42 If any argument of this function is none, it throws MissingDataException

Callers 2

parseMethod · 0.80
get_timetable_changesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected