Skip to content

Commit 9168d4b

Browse files
Fix remaining doc isssue
1 parent 1ceebdb commit 9168d4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/python-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ Alongside this, we support a function `dict_update` method, which can allow you
204204
def my_add(a, b):
205205
return a + b
206206
207-
amended_globals = PyObject(globals()).dict_update("one", 1)
208-
evalled = py_eval("my_add(one, 2)", locals(), amended_globals)
207+
amended_globals = PyObject({"my_add": my_add}).dict_update("one", 1)
208+
evalled = py_eval("my_add(one, 2)", {}, amended_globals)
209209
assert EGraph().extract(evalled).value == 3
210210
```
211211

0 commit comments

Comments
 (0)