MCPcopy Create free account
hub / github.com/pytest-dev/pytest / parse_num

Function parse_num

src/_pytest/pathlib.py:179–184  ·  view source on GitHub ↗

Parse number path suffixes, returns -1 on error.

(maybe_num)

Source from the content-addressed store, hash-verified

177
178
179def parse_num(maybe_num) -> int:
180 """Parse number path suffixes, returns -1 on error."""
181 try:
182 return int(maybe_num)
183 except ValueError:
184 return -1
185
186
187def _force_symlink(

Callers

nothing calls this directly

Calls 1

intClass · 0.85

Tested by

no test coverage detected