Skip to content

Commit fdc8905

Browse files
committed
Do not change the scoping rules of defs
Signed-off-by: Louis Mandel <[email protected]>
1 parent 9d6b92f commit fdc8905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pdl/pdl_interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ def process_defs(
10001000
state = state.with_yield_background(False)
10011001
if isinstance(block, FunctionBlock) and block.def_ is None:
10021002
block = block.model_copy(update={"def_": x})
1003-
result, _, scope, block_trace = process_block(state, scope, block, newloc)
1003+
result, _, _, block_trace = process_block(state, scope, block, newloc)
10041004
scope = scope | PdlDict({x: result})
10051005
defs_trace[x] = block_trace
10061006
idx = idx + 1

0 commit comments

Comments
 (0)