(version: str)
| 170 | |
| 171 | @staticmethod |
| 172 | def _parse_patch(version: str) -> tuple[int, int, int]: |
| 173 | try: |
| 174 | major, minor, patch = [int(part) for part in str(version).split(".")[:3]] |
| 175 | return major, minor, patch |
| 176 | except Exception: |
| 177 | return 0, 1, 0 |
| 178 | |
| 179 | def _bump_patch(self, version: str) -> str: |
| 180 | major, minor, patch = self._parse_patch(version) |