diff --git a/boto3/dynamodb/conditions.py b/boto3/dynamodb/conditions.py index 0ddab101c7..5d0e05820a 100644 --- a/boto3/dynamodb/conditions.py +++ b/boto3/dynamodb/conditions.py @@ -61,7 +61,7 @@ def __eq__(self, other): def __ne__(self, other): return not self.__eq__(other) - def __str__(self) -> str: + def __repr__(self) -> str: format_str = EXPR_STR_FORMAT_REGEX.sub( r"{values[\1]}", self.expression_format ) @@ -142,7 +142,7 @@ def __eq__(self, other): def __ne__(self, other): return not self.__eq__(other) - def __str__(self) -> str: + def __repr__(self) -> str: return self.name