diff --git a/tests/functional/codegen/types/numbers/test_signed_ints.py b/tests/functional/codegen/types/numbers/test_signed_ints.py index 46fdfcafac..a10eaee408 100644 --- a/tests/functional/codegen/types/numbers/test_signed_ints.py +++ b/tests/functional/codegen/types/numbers/test_signed_ints.py @@ -360,7 +360,7 @@ def foo(x: {typ}, y: {typ}) -> bool: fn = COMPARISON_OPS[op] c = get_contract(code_1) - # note: constant folding is tested in tests/ast/folding + # note: constant folding is tested in tests/unit/ast/nodes special_cases = [ lo, lo + 1, diff --git a/tests/functional/codegen/types/numbers/test_unsigned_ints.py b/tests/functional/codegen/types/numbers/test_unsigned_ints.py index 165b24f81d..f10e861689 100644 --- a/tests/functional/codegen/types/numbers/test_unsigned_ints.py +++ b/tests/functional/codegen/types/numbers/test_unsigned_ints.py @@ -193,7 +193,7 @@ def foo(x: {typ}, y: {typ}) -> bool: lo, hi = typ.ast_bounds - # note: constant folding is tested in tests/ast/folding + # note: folding is tested in tests/unit/ast/nodes special_cases = [0, 1, 2, 3, hi // 2 - 1, hi // 2, hi // 2 + 1, hi - 2, hi - 1, hi] xs = special_cases.copy() diff --git a/vyper/semantics/analysis/utils.py b/vyper/semantics/analysis/utils.py index dcf81b4d6e..a7b62b9a7a 100644 --- a/vyper/semantics/analysis/utils.py +++ b/vyper/semantics/analysis/utils.py @@ -134,8 +134,7 @@ def get_exact_type_from_node(self, node, include_type_exprs=False): def get_possible_types_from_node(self, node, include_type_exprs=False): """ Find all possible types for a given node. - If the node's metadata contains type information propagated from constant folding, - then that type is returned. + If the node's metadata contains type information, then that type is returned. Arguments ---------