From c5f39948f0595be8aa8204613ddd950d1eeb4b34 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 13 Jun 2023 01:03:55 +0800 Subject: [PATCH] ... --- python/collections.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/collections.py b/python/collections.py index 4e88198d..a962f053 100644 --- a/python/collections.py +++ b/python/collections.py @@ -59,7 +59,8 @@ class deque: node = node.next def __repr__(self) -> str: - return f"deque({list(self)})" + a = list(self) + return f"deque({a})" def __eq__(self, __o: object) -> bool: if not isinstance(__o, deque):