Source code for spack.version.lookup

# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from typing import Optional, Tuple


[docs] class AbstractRefLookup:
[docs] def get(self, ref) -> Tuple[Optional[str], int]: """Get the version string and distance for a given git ref. Args: ref (str): git ref to lookup Returns: optional version string and distance""" return None, 0