Skip to content

Commit

Permalink
improve annotation for in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 2, 2021
1 parent a022c95 commit 3e036aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/old_codegen/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,8 @@ def build_in_comparator(self):
# for `not in`, invert the result
compare_sequence = ["iszero", compare_sequence]

return LLLnode.from_list(compare_sequence, typ="bool", annotation="in comparator")
annotation = self.expr.get("node_source_code")
return LLLnode.from_list(compare_sequence, typ="bool", annotation=annotation)

@staticmethod
def _signed_to_unsigned_comparision_op(op):
Expand Down

0 comments on commit 3e036aa

Please sign in to comment.