From d7a4c186c93e3883270e3ef3ab6dde22debe8e9f Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 14 Aug 2024 11:40:42 -0400 Subject: [PATCH] fixed nonmatching variable in comparison functions --- attributes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attributes.py b/attributes.py index 6118448..7076909 100644 --- a/attributes.py +++ b/attributes.py @@ -42,7 +42,7 @@ class Attribute: return not self == other #less than/greater than compare attributes by value, or compare value to int - def __lt__(self, value): + def __lt__(self, other): if isinstance(other, Attribute): return self.value < other.value elif isinstance(other, int): @@ -50,7 +50,7 @@ class Attribute: else: return False - def __le__(self, value): + def __le__(self, other): if isinstance(other, Attribute): return self.value <= other.value elif isinstance(other, int):