MCPcopy Index your code
hub / github.com/python/mypy / testfile_pyversion

Function testfile_pyversion

mypy/test/helpers.py:314–320  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

312
313
314def testfile_pyversion(path: str) -> tuple[int, int]:
315 if m := re.search(r"python3([0-9]+)\.test$", path):
316 # For older unsupported version like python38,
317 # default to that earliest supported version.
318 return max((3, int(m.group(1))), defaults.PYTHON3_VERSION_MIN)
319 else:
320 return defaults.PYTHON3_VERSION_MIN
321
322
323def normalize_error_messages(messages: list[str]) -> list[str]:

Callers 2

test_semanalFunction · 0.90
parse_optionsFunction · 0.85

Calls 3

maxFunction · 0.85
intClass · 0.85
groupMethod · 0.80

Tested by 1

test_semanalFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…