From 87e64694a186061757888060e435e9539abb5db7 Mon Sep 17 00:00:00 2001 From: tserg <8017125+tserg@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:53:42 +0800 Subject: [PATCH] add expected_return_typ named kwarg --- vyper/semantics/analysis/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vyper/semantics/analysis/local.py b/vyper/semantics/analysis/local.py index f701e5f4a7..7b9600838e 100644 --- a/vyper/semantics/analysis/local.py +++ b/vyper/semantics/analysis/local.py @@ -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)