Skip to content

Incorrect __contains__ resolution in VersionRange #137

Description

@keshav-space

The __contains__ method in VersionRange does not correctly resolve whether the version is within the range, for the edge case given below.

>>> from univers.version_range import VersionRange
>>> from univers.versions import PypiVersion
>>> vr = VersionRange.from_string("vers:pypi/<=1.3.0|3.0.0")
>>> PypiVersion("1.0.0") in vr
False

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1-nextbugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions