summaryrefslogtreecommitdiff
path: root/tests/typing_test_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typing_test_data.py')
-rw-r--r--tests/typing_test_data.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/typing_test_data.py b/tests/typing_test_data.py
index 74a906ad1..461be7831 100644
--- a/tests/typing_test_data.py
+++ b/tests/typing_test_data.py
@@ -46,3 +46,11 @@ def f7(x: Callable[[int, str], int]) -> None:
def f8(x: Tuple[int, str], y: Tuple[int, ...]) -> None:
pass
+
+
+class CustomAnnotation:
+ def __repr__(self):
+ return 'CustomAnnotation'
+
+def f9(x: CustomAnnotation(), y: 123) -> None:
+ pass