Skip to content

Commit f8e6488

Browse files
committed
fix python 3.14 tests
1 parent f473b54 commit f8e6488

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/reactpy/core/events.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def __init__(
111111
last_was_event = False
112112

113113
for instr in dis.get_instructions(func_to_inspect):
114-
if instr.opname == "LOAD_FAST" and instr.argval == event_arg_name:
114+
if (
115+
instr.opname in ("LOAD_FAST", "LOAD_FAST_BORROW")
116+
and instr.argval == event_arg_name
117+
):
115118
last_was_event = True
116119
continue
117120

0 commit comments

Comments
 (0)