Skip to content

Commit

Permalink
add expected_return_typ named kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Dec 29, 2023
1 parent 5432063 commit 87e6469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/semantics/analysis/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def visit_Call(self, node: vy_ast.Call, typ: VyperType) -> None:
self.visit(arg, arg_type)
else:
# builtin functions
arg_types = call_type.infer_arg_types(node, typ)
arg_types = call_type.infer_arg_types(node, expected_return_typ=typ)
# `infer_arg_types` already calls `validate_expected_type`
for arg, arg_type in zip(node.args, arg_types):
self.visit(arg, arg_type)
Expand Down

0 comments on commit 87e6469

Please sign in to comment.