Skip to content

Commit 1f74810

Browse files
committed
fix: use actual C types for threading lock isinstance checks
threading.Lock and threading.RLock are factory functions, not types — they can't be used in isinstance(). Use _thread.LockType and _thread.RLock which are the actual C extension types.
1 parent 86eefcf commit 1f74810

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

codeflash/verification/comparator.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,8 +637,7 @@ def comparator(orig: Any, new: Any, superset_obj: bool = False) -> bool:
637637
orig,
638638
(
639639
_thread.LockType,
640-
threading.Lock,
641-
threading.RLock,
640+
_thread.RLock,
642641
threading.Event,
643642
threading.Condition,
644643
sqlite3.Connection,

0 commit comments

Comments
 (0)