Skip to content

Commit

Permalink
Set only once
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Oct 11, 2023
1 parent 1188ff3 commit 66dc424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreted/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def visit_FunctionDef(self, node: FunctionDef) -> None:
raise InterpreterError(f"{object_type!r} object is not callable")

function = decorator.call(self, [function])
self.scope.set(node.name, function)
self.scope.set(node.name, function)

def visit_Assign(self, node: Assign) -> None:
value = self.visit(node.value)
Expand Down

0 comments on commit 66dc424

Please sign in to comment.