Provide a fallback value if the Python version is unsupported.
| 27 | |
| 28 | |
| 29 | class 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 | |
| 37 | def parse_version(v: str | float) -> tuple[int, int]: |
no outgoing calls
no test coverage detected
searching dependent graphs…