Skip to content

Commit

Permalink
make _pp_signature use str not repr
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbubbles committed Nov 23, 2024
1 parent 9ead96f commit 8821f01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/functional/syntax/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def foobar(token: IERC20):

assert (
e.value.message
== "Contract does not implement all interface functions: foobar(interface IERC20)"
== "Contract does not implement all interface functions: foobar(IERC20)"
)


Expand Down
2 changes: 1 addition & 1 deletion vyper/semantics/types/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def __str__(self):

@cached_property
def _pp_signature(self):
ret = ",".join(repr(arg.typ) for arg in self.arguments)
ret = ",".join(str(arg.typ) for arg in self.arguments)
return f"{self.name}({ret})"

# override parent implementation. function type equality does not
Expand Down

0 comments on commit 8821f01

Please sign in to comment.