From c87b156ff95412bacc144ddd9f5b934fd597a0a5 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Sat, 30 Dec 2023 15:58:55 -0500 Subject: [PATCH] remove "type-checking" _try_folds try_fold should be called on everything very early on, so there is no need anymore --- vyper/builtins/functions.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/vyper/builtins/functions.py b/vyper/builtins/functions.py index 99fe2d084e..11655c57bd 100644 --- a/vyper/builtins/functions.py +++ b/vyper/builtins/functions.py @@ -738,8 +738,6 @@ def fetch_call_return(self, node): return type_ def infer_arg_types(self, node, expected_return_typ=None): - # call `_try_fold` for its typechecking side effects - self._try_fold(node) return [self._inputs[0][1]] def infer_kwarg_types(self, node): @@ -1008,12 +1006,6 @@ def fetch_call_return(self, node): return self._return_type def infer_arg_types(self, node, expected_return_typ=None): - # call `_try_fold` for its typechecking side effects` - try: - self._try_fold(node) - except UnfoldableNode: - pass - self._validate_arg_types(node) # return a concrete type instead of abstract type value_type = get_possible_types_from_node(node.args[0]).pop() @@ -2584,8 +2576,6 @@ def _try_fold(self, node): return ret def infer_arg_types(self, node, expected_return_typ=None): - # call `_try_fold` for its typechecking side effects - self._try_fold(node) input_typedef = TYPE_T(type_from_annotation(node.args[0])) return [input_typedef]