Skip to content

Commit e2b1925

Browse files
committed
prevent mutation
1 parent 62d6d00 commit e2b1925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ def create_stats(self) -> None:
763763

764764
def snapshot_stats(self) -> None:
765765
self.stats = {}
766-
for func, (cc, _ns, tt, ct, caller_dict) in self.timings.items():
766+
for func, (cc, _ns, tt, ct, caller_dict) in list(self.timings.items()):
767767
callers = caller_dict.copy()
768768
nc = 0
769769
for callcnt in callers.values():

0 commit comments

Comments
 (0)