Skip to content

Commit 538f6fb

Browse files
authored
Merge pull request #147 from skogsbaer/sw/fix-union-bug
fix union bug
2 parents 7cb3d0e + ea5f25a commit 538f6fb

File tree

12 files changed

+46
-13
lines changed

12 files changed

+46
-13
lines changed

ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Write Your Python Program - CHANGELOG
22

3+
* ? (?)
4+
* Fix bug with union of unions
5+
* 1.2.1 (2024-11-05)
6+
* Fix assets for visualization
7+
* 1.2.0 (2024-11-04)
8+
* Support for visualization
9+
* Fix handling of lazy annotations in records
10+
* Fix output of execution fails but some tests were successful
311
* 1.1.0 (2024-10-02)
412
* Improve invocation on windows, always use cmd.exe
513
* Fixed bugs #132, #133, #134, and #135

src/programflow-visualization/frontend/resources/leader-line.min.js renamed to media/programflow-visualization/leader-line.min.js

File renamed without changes.

src/programflow-visualization/frontend/resources/webview.css renamed to media/programflow-visualization/webview.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ body {
1818
.floating-right-content {
1919
width: 65%;
2020
padding: 10px;
21-
min-height: 450px;
2221
max-height: 90%;
2322
}
2423

@@ -31,7 +30,6 @@ body {
3130
width: 35%;
3231
padding: 10px;
3332
max-height: 90%;
34-
min-height: 450px;
3533
margin-right: 100px;
3634
}
3735

File renamed without changes.

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Write Your Python Program!",
44
"description": "A user friendly python environment for beginners",
55
"license": "See license in LICENSE",
6-
"version": "1.1.0",
6+
"version": "1.2.1",
77
"publisher": "StefanWehr",
88
"icon": "icon.png",
99
"engines": {
@@ -81,7 +81,6 @@
8181
},
8282
"dependencies": {
8383
"@types/node": "^18.11.13",
84-
"leader-line": "^1.0.7",
8584
"stringify-json": "^2.0.0",
8685
"tmp": "^0.2.3",
8786
"ts-md5": "^1.3.1"

python/deps/untypy/untypy/impl/union.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def describe(self) -> str:
7171
def base_type(self) -> list[Any]:
7272
out = []
7373
for checker in self.inner:
74-
out.append(checker.base_type())
74+
out.extend(checker.base_type())
7575
return out
7676

7777

python/fileTests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ checkWithOutputAux yes 0 test-data/testUnion3.py
287287
checkWithOutputAux yes 1 test-data/testLiteral1.py
288288
checkWithOutputAux yes 0 test-data/testForwardTypeInRecord.py
289289
checkWithOutputAux yes 0 test-data/testForwardTypeInRecord2.py
290+
checkWithOutputAux yes 0 test-data/testUnionOfUnion.py
290291

291292
function is_min_version()
292293
{

python/test-data/testUnionOfUnion.err

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pizza: Napoli
2+
noodles: Penne
3+
beer: Export

0 commit comments

Comments
 (0)