(cls, *version: int)
| 1078 | """A class that can be used to compare version strings.""" |
| 1079 | |
| 1080 | def __new__(cls, *version: int) -> Version: |
| 1081 | padded_version = cls._padded(version, 4) |
| 1082 | return super().__new__(cls, tuple(padded_version)) |
| 1083 | |
| 1084 | @classmethod |
| 1085 | def _padded(cls, iter: Any, length: int, padding: int = 0) -> list[int]: |