@staticmethod
  def parse(version):
    try:
      return Semver.parse(version)
    except ValueError:
      return Namedver.parse(version)
Attempts to parse the given string as Semver, then falls back to Namedver.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/task/scm_publish_mixin.py/Version.parse