msticpy/nbtools/azure_ml_tools.py
def _get_pkg_version(version: Union[str, Tuple]) -> Any:
    """Return pkg_resources parsed version from string or tuple."""
    if isinstance(version, str):
        return parse_version(version)
    if isinstance(version, tuple):
        return parse_version(".".join(str(ver) for ver in version))
    raise TypeError(f"Unparseable type version {version}")
Return pkg_resources parsed version from string or tuple.
Return pkg_resources parsed version from string or tuple.
Return pkg_resources parsed version from string or tuple .
def _get_pkg_version(version: Union[str, Tuple]) -> Any:
    if isinstance(version, str):
        return parse_version(version)
    if isinstance(version, tuple):
        return parse_version(".".join(str(ver) for ver in version))
    raise TypeError(f"Unparseable type version {version}")
def _get_pkg_version ( version : Union [ str , Tuple ] ) -> Any : if isinstance ( version , str ) : return parse_version ( version ) if isinstance ( version , tuple ) : return parse_version ( "." . join ( str ( ver ) for ver in version ) ) raise TypeError ( f"Unparseable type version {version}" )
Return pkg_resources parsed version from string or tuple.
Return pkg_resources parsed version from string or tuple .
"""Return pkg_resources parsed version from string or tuple."""
version
Union[str, Tuple]