(self)
| 52 | return (int(self.major), int(self.minor), int(self.patch)) + stage |
| 53 | |
| 54 | def __str__(self): |
| 55 | stage = f'-{self.stage}' if self.stage else '' |
| 56 | edition = f'-{self.edition}' if self.edition else '' |
| 57 | return '.'.join(map(str, self[:3])) + edition + stage |
| 58 | |
| 59 | |
| 60 | def main(): |