(self, other)
| 181 | return self.major, self.minor, self.patch |
| 182 | |
| 183 | def _validate_operand(self, other): |
| 184 | if isinstance(other, str): |
| 185 | return Version(other) |
| 186 | elif isinstance(other, Version): |
| 187 | return other |
| 188 | raise AssertionError( |
| 189 | "{} (type {}) cannot be compared to version.".format(other, type(other)) |
| 190 | ) |
| 191 | |
| 192 | def __eq__(self, other): |
| 193 | if other is None: |