We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d999325 commit 5850d64Copy full SHA for 5850d64
3 files changed
python/file-test-data/extras/multi_thread_ok.err
python/file-test-data/extras/multi_thread_ok.out
@@ -0,0 +1,15 @@
1
+START
2
+started
3
+WyppTypeError: '1'
4
+
5
+Rückgabewert vom Typ `int` erwartet bei Aufruf der Funktion `foo`.
6
+Aber der Aufruf gibt einen Wert vom Typ `str` zurück.
7
8
+## Datei file-test-data/extras/multi_thread_ok.py
9
+## Rückgabetyp deklariert in Zeile 4:
10
11
+def foo(i: int) -> [0;31m[1mint[0;0m:
12
13
+## Aufruf in Zeile 9 verursacht das fehlerhafte return:
14
15
+ [0;31m[1mfoo(1)[0;0m
python/file-test-data/extras/multi_thread_ok.py
@@ -0,0 +1,18 @@
+import wypp
+import threading
+def foo(i: int) -> int:
+ return str(i)
+def doWork():
+ try:
+ foo(1)
+ except wypp.WyppTypeError as e:
+ print(e)
+t = threading.Thread(target=doWork)
+print('START')
+t.start()
16
+print('started')
17
+t.join()
18
0 commit comments