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

Function parse_version

mypy/modulefinder.py:1001–1003  ·  view source on GitHub ↗
(version: str)

Source from the content-addressed store, hash-verified

999
1000
1001def parse_version(version: str) -> tuple[int, int]:
1002 major, minor = version.strip().split(".")
1003 return int(major), int(minor)
1004
1005
1006def typeshed_py_version(options: Options) -> tuple[int, int]:

Callers 1

load_stdlib_py_versionsFunction · 0.70

Calls 3

intClass · 0.85
splitMethod · 0.80
stripMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…