Join split version components into a version string. This function assumes the input came from :func:`_version_split`, where the first component must be the epoch (either empty or numeric), and all other components numeric.
(components: List[str])
| 666 | |
| 667 | |
| 668 | def _version_join(components: List[str]) -> str: |
| 669 | """Join split version components into a version string. |
| 670 | |
| 671 | This function assumes the input came from :func:`_version_split`, where the |
| 672 | first component must be the epoch (either empty or numeric), and all other |
| 673 | components numeric. |
| 674 | """ |
| 675 | epoch, *rest = components |
| 676 | return f"{epoch}!{'.'.join(rest)}" |
| 677 | |
| 678 | |
| 679 | def _is_not_suffix(segment: str) -> bool: |
no test coverage detected