Skip to content

Commit ce55bfa

Browse files
committed
add vscode-test folder
1 parent a4ce643 commit ce55bfa

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

vscode-test/.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"python.analysis.diagnosticSeverityOverrides": {
3+
"reportWildcardImportFromLibrary": "none"
4+
},
5+
"python.analysis.extraPaths": [
6+
"../python/code",
7+
"/Users/swehr/devel/write-your-python-program/python/code"
8+
],
9+
"python.analysis.typeCheckingMode": "off"
10+
}

vscode-test/type-test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from wypp import *
2+
3+
type OnOff = Literal['on', 'off']
4+
5+
def test(x: OnOff):
6+
pass
7+
8+
test('blub')
9+
10+
@record
11+
class Point:
12+
x: int
13+
y: int
14+
15+
p = Point()

0 commit comments

Comments
 (0)