Skip to content

Commit 5850d64

Browse files
committed
add missing files
1 parent d999325 commit 5850d64

3 files changed

Lines changed: 33 additions & 0 deletions

File tree

python/file-test-data/extras/multi_thread_ok.err

Whitespace-only changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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) -> int:
12+
13+
## Aufruf in Zeile 9 verursacht das fehlerhafte return:
14+
15+
foo(1)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import wypp
2+
import threading
3+
4+
def foo(i: int) -> int:
5+
return str(i)
6+
7+
def doWork():
8+
try:
9+
foo(1)
10+
except wypp.WyppTypeError as e:
11+
print(e)
12+
13+
t = threading.Thread(target=doWork)
14+
print('START')
15+
t.start()
16+
print('started')
17+
t.join()
18+

0 commit comments

Comments
 (0)