egacyVersion` object depending on if the given version is
    a valid PEP 440 version or a legacy version.
    )