Skip to content

Commit 48e367e

Browse files
committed
should work, will write some tests
1 parent 2a1096b commit 48e367e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/verification/comparator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import math
88
import re
99
import types
10+
from collections import deque
1011
from typing import Any
1112

1213
import sentry_sdk
@@ -70,7 +71,7 @@ def comparator(orig: Any, new: Any, superset_obj=False) -> bool: # noqa: ANN001
7071
# distinct type objects are created at runtime, even if the class code is exactly the same, so we can only compare the names
7172
if type_obj.__name__ != new_type_obj.__name__ or type_obj.__qualname__ != new_type_obj.__qualname__:
7273
return False
73-
if isinstance(orig, (list, tuple)):
74+
if isinstance(orig, (list, tuple, deque)):
7475
if len(orig) != len(new):
7576
return False
7677
return all(comparator(elem1, elem2, superset_obj) for elem1, elem2 in zip(orig, new))

0 commit comments

Comments
 (0)