Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-morel committed Jun 9, 2024
1 parent a498c86 commit 72c0753
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/test_annotate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pyoload

from pyoload import AnnotationError
from pyoload import AnnotationResolutionError
from pyoload import Cast
from pyoload import annotable
Expand Down Expand Up @@ -68,7 +69,16 @@ class Footy:
pass
else:
raise Exception()
try:
@annotate
def footy() -> 'int':
pass

footy(2)
except AnnotationError:
pass
else:
raise Exception()
try:
assert type_match({3: None}, dict[str]) == (True, None)
except Exception:
Expand Down

0 comments on commit 72c0753

Please sign in to comment.