From a9cb5b566dc6615f41b18b77fc4f5f3071c04e03 Mon Sep 17 00:00:00 2001 From: ImFlog Date: Tue, 17 Mar 2020 18:35:38 +0100 Subject: [PATCH] Python 2.X, fix missing neq in DynamoType --- moto/dynamodb2/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moto/dynamodb2/models.py b/moto/dynamodb2/models.py index 8e5a61755..65dd2c3f7 100644 --- a/moto/dynamodb2/models.py +++ b/moto/dynamodb2/models.py @@ -146,6 +146,9 @@ class DynamoType(object): def __eq__(self, other): return self.type == other.type and self.value == other.value + def __ne__(self, other): + return self.type != other.type or self.value != other.value + def __lt__(self, other): return self.cast_value < other.cast_value