We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> from univers.versions import SemverVersion >>> from univers.version_range import VersionRange >>> >>> range = VersionRange.from_string("vers:npm/>=1.2.3|>1.2.4") >>> >>> SemverVersion("1.2.5") in range Traceback (most recent call last): File "<stdin>", line 1, in <module> File "../univers/src/univers/version_range.py", line 219, in __contains__ return contains_version(version, self.constraints) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "../univers/src/univers/version_constraint.py", line 542, in contains_version raise Exception(f"Invalid constraints sequence: {constraints }") Exception: Invalid constraints sequence: [VersionConstraint(comparator='>=', version=SemverVersion(string='1.2.3')), VersionConstraint(comparator='>', version=SemverVersion(string='1.2.4'))] >>>
The text was updated successfully, but these errors were encountered:
prefered constraint sequence
Handle invalid constraints sequence exception
42a8892
- issue aboutcode-org/univers#118 Signed-off-by: Keshav Priyadarshi <[email protected]>
No branches or pull requests
The text was updated successfully, but these errors were encountered: