Method: pylint.testutils.functional.test_file.parse_python_version
Calls: 433, Exceptions: 0, Paths: 1Back
Path 1: 433 calls (1.0)
'3.8' (162) '3.7' (126) '3.9' (72) '3.10' (60) '3.0' (6) '3.11' (3) '4.0' (3) '2.7.4' (1)
(3, 8) (162) (3, 7) (126) (3, 9) (72) (3, 10) (60) (3, 0) (6) (3, 11) (3) (4, 0) (3) (2, 7, 4) (1)
1def parse_python_version(ver_str: str) -> tuple[int, ...]:
2 """Convert python version to a tuple of integers for easy comparison."""
3 return tuple(int(digit) for digit in ver_str.split("."))