From a7556d8f8ec02072d373cd15d81d212990d580e9 Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Thu, 14 Mar 2024 12:45:55 -0400 Subject: [PATCH] add a hint --- vyper/builtins/functions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vyper/builtins/functions.py b/vyper/builtins/functions.py index ce91231842..4490ee90a5 100644 --- a/vyper/builtins/functions.py +++ b/vyper/builtins/functions.py @@ -220,7 +220,10 @@ def infer_arg_types(self, node, expected_return_typ=None): # block conversions between same type if target_type.compare_type(value_type): - raise InvalidType(f"Value and target type are both '{target_type}'", node) + raise InvalidType( + f"Value and target type are both `{target_type}`", + hint="try removing the call to `convert()`", + ) return [value_type, TYPE_T(target_type)]