Skip to content

Commit 11bb1a6

Browse files
committed
Set eq=False in VersionRange and VersionConstraint for the __eq__ method to work
Signed-off-by: Aayush Kumar <aayush214.kumar@gmail.com>
1 parent 9c15915 commit 11bb1a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/univers/version_constraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def operator_star(a, b):
5353

5454

5555
@total_ordering
56-
@attr.s(frozen=True, repr=True, str=False, order=False, eq=True, hash=True)
56+
@attr.s(frozen=True, repr=True, str=False, order=False, eq=False, hash=True)
5757
class VersionConstraint:
5858
"""
5959
Represent a single constraint composed of a comparator and a version.

src/univers/version_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class InvalidVersionRange(Exception):
3939
}
4040

4141

42-
@attr.s(frozen=True, order=False, eq=True, hash=True)
42+
@attr.s(frozen=True, order=False, eq=False, hash=True)
4343
class VersionRange:
4444
"""
4545
Base version range class. Subclasses must provide implement.

0 commit comments

Comments
 (0)