MCPcopy
hub / github.com/python/mypy / VersionTypeError

Class VersionTypeError

mypy/config_parser.py:29–34  ·  view source on GitHub ↗

Provide a fallback value if the Python version is unsupported.

Source from the content-addressed store, hash-verified

27
28
29class VersionTypeError(argparse.ArgumentTypeError):
30 """Provide a fallback value if the Python version is unsupported."""
31
32 def __init__(self, *args: Any, fallback: tuple[int, int]) -> None:
33 self.fallback = fallback
34 super().__init__(*args)
35
36
37def parse_version(v: str | float) -> tuple[int, int]:

Callers 1

parse_versionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…