Skip to content

Commit

Permalink
Add test for unsupported type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch committed Jan 12, 2024
1 parent de4fdc8 commit 71e05ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/error/py_errors/unsupported.err
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Guppy compilation failed. Error in file $FILE:6

4: @guppy
5: def foo() -> int:
6: return py({1, 2, 3})
^^^^^^^^^^^^^
GuppyError: Python expression of type `<class 'set'>` is not supported by Guppy
6 changes: 6 additions & 0 deletions tests/error/py_errors/unsupported.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from guppy.decorator import guppy


@guppy
def foo() -> int:
return py({1, 2, 3})

0 comments on commit 71e05ac

Please sign in to comment.