Skip to content

Commit

Permalink
fix small details to make PyRight happy
Browse files Browse the repository at this point in the history
jd-develop committed Dec 31, 2024
1 parent 57e17c9 commit 710b374
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/interpreter.py
Original file line number Diff line number Diff line change
@@ -728,7 +728,7 @@ def visit_VarAssignNode(self, node: VarAssignNode, ctx: Context, methods_instead
final_var_name: str = var_name[-1].value
variable_exists = final_var_name in value.attributes
if variable_exists:
var_actual_value: Value | None = value.attributes[var_name[-1].value]
var_actual_value: Value | None = value.attributes[final_var_name]
else:
var_actual_value: Value | None = None

1 change: 0 additions & 1 deletion src/runtime/values/functions/builtin_function.py
Original file line number Diff line number Diff line change
@@ -75,7 +75,6 @@ def execute(self, args: list[Value], interpreter_: type[Interpreter], run: RunFu
method_dict: BuiltinFunctionDict = self.builtin_functions[self.name]
except KeyError:
self.no_visit_method(exec_ctx)
return result
method = method_dict["function"]

optional_params: list[tuple[str, Value | None]] = [(param, None) for param in method_dict["optional_params"]]

0 comments on commit 710b374

Please sign in to comment.