azure-sdk-tools/packaging_tools/pypi.py
def get_relevant_versions(self, package_name: str):
        """Return a tuple: (latest release, latest stable)
        If there are different, it means the latest is not a stable
        """
        versions = self.get_ordered_versions(package_name)
        pre_releases = [version for version in versions if not version.is_prerelease]
        return (
            versions[-1],
            pre_releases[-1]
        )
def get_relevant_versions(self, package_name: str):
        """Return a tuple: (latest release, latest stable)
        If there are different, it means the latest is not a stable
        """
        versions = self.get_ordered_versions(package_name)
        pre_releases = [version for version in versions if not version.is_prerelease]
        return (
            versions[-1],
            pre_releases[-1]
        )
def get_relevant_versions ( self , package_name : str ) : versions = self . get_ordered_versions ( package_name ) pre_releases = [ version for version in versions if not version . is_prerelease ] return ( versions [ - 1 ] , pre_releases [ - 1 ] )
Return a tuple: (latest release, latest stable)
        If there are different, it means the latest is not a stable
Return a tuple : ( latest release latest stable ) If there are different it means the latest is not a stable