(version: str)
| 7 | |
| 8 | |
| 9 | def _tuple_from_text(version: str) -> Tuple: |
| 10 | text_parts = version.split(".") |
| 11 | int_parts = [] |
| 12 | for text_part in text_parts: |
| 13 | digit_prefix = "".join( |
| 14 | itertools.takewhile(lambda x: x in string.digits, text_part) |
| 15 | ) |
| 16 | try: |
| 17 | int_parts.append(int(digit_prefix)) |
| 18 | except Exception: |
| 19 | break |
| 20 | return tuple(int_parts) |
| 21 | |
| 22 | |
| 23 | def _version_check( |
searching dependent graphs…