blueloveTH 2 years ago
parent
commit
c5f39948f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      python/collections.py

+ 2 - 1
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):