Skip to content

Commit f076af0

Browse files
fix hint in None case
1 parent 186e0f0 commit f076af0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vyper/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@ def format_annotation(self, value):
146146
return node_msg
147147

148148
def _add_hint(self, msg):
149+
hint = self.hint
150+
if hint is None:
151+
return msg
149152
return msg + f"\n (hint: {self.hint})"
150153

151154
def __str__(self):

0 commit comments

Comments
 (0)