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

Function check_python_version

mypy/util.py:492–499  ·  view source on GitHub ↗

Report issues with the Python used to run mypy, dmypy, or stubgen

(program: str)

Source from the content-addressed store, hash-verified

490
491
492def check_python_version(program: str) -> None:
493 """Report issues with the Python used to run mypy, dmypy, or stubgen"""
494 # Check for known bad Python versions.
495 if sys.version_info[:2] < (3, 10): # noqa: UP036, RUF100
496 sys.exit(
497 "Running {name} with Python 3.9 or lower is not supported; "
498 "please upgrade to 3.10 or newer".format(name=program)
499 )
500
501
502def count_stats(messages: list[str]) -> tuple[int, int, int]:

Callers 1

mainFunction · 0.90

Calls 2

exitMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…