Skip to content

Commit d04626f

Browse files
authored
Added latest python and node versions to CI. (#300)
* Added latest python and node versions to CI. * added 3.13 snapshots * added 3.14 snapshots
1 parent 8c30755 commit d04626f

6 files changed

Lines changed: 103 additions & 1 deletion

File tree

.github/workflows/ci.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
strategy:
2828
matrix:
29-
node-version: [18.x, 20.x]
29+
node-version: [18.x, 20.x, 22.x]
3030
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
3131

3232
steps:

.github/workflows/ci.python.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
python-version:
2424
- '3.11'
2525
- '3.12'
26+
- '3.13'
27+
- '3.14'
2628

2729
runs-on: ${{ matrix.os }}
2830

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Entry point is: 'Derived'
2+
3+
// ERRORS:
4+
// !!! Cannot create a schema using two types with the same name. C conflicts between <class 'tests.test_conflicting_names_1.a.<locals>.C'> and <class 'tests.test_conflicting_names_1.b.<locals>.C'>
5+
6+
interface Derived extends C, C {
7+
}
8+
9+
interface C {
10+
my_attr_2: number;
11+
}
12+
13+
interface C {
14+
my_attr_1: string;
15+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Entry point is: 'D_or_E'
2+
3+
type D_or_E = D | E
4+
5+
// This is the definition of the class E.
6+
interface E extends C<string> {
7+
tag: "E";
8+
next: this | null;
9+
}
10+
11+
// This is a generic class named C.
12+
interface C<T> {
13+
x?: T;
14+
c: C<number | null>;
15+
}
16+
17+
// This is the definition of the class D.
18+
interface D extends C<string> {
19+
tag?: "D";
20+
// This comes from string metadata
21+
// within an Annotated hint.
22+
y: boolean | null;
23+
z?: number[] | null;
24+
other?: IndirectC;
25+
non_class?: NonClass;
26+
// This comes from later metadata.
27+
multiple_metadata?: string;
28+
}
29+
30+
interface NonClass {
31+
a: number;
32+
"my-dict": Record<string, number>;
33+
}
34+
35+
type IndirectC = C<number>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Entry point is: 'Derived'
2+
3+
// ERRORS:
4+
// !!! Cannot create a schema using two types with the same name. C conflicts between <class 'tests.test_conflicting_names_1.a.<locals>.C'> and <class 'tests.test_conflicting_names_1.b.<locals>.C'>
5+
6+
interface Derived extends C, C {
7+
}
8+
9+
interface C {
10+
my_attr_2: number;
11+
}
12+
13+
interface C {
14+
my_attr_1: string;
15+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Entry point is: 'D_or_E'
2+
3+
type D_or_E = D | E
4+
5+
// This is the definition of the class E.
6+
interface E extends C<string> {
7+
tag: "E";
8+
next: this | null;
9+
}
10+
11+
// This is a generic class named C.
12+
interface C<T> {
13+
x?: T;
14+
c: C<number | null>;
15+
}
16+
17+
// This is the definition of the class D.
18+
interface D extends C<string> {
19+
tag?: "D";
20+
// This comes from string metadata
21+
// within an Annotated hint.
22+
y: boolean | null;
23+
z?: number[] | null;
24+
other?: IndirectC;
25+
non_class?: NonClass;
26+
// This comes from later metadata.
27+
multiple_metadata?: string;
28+
}
29+
30+
interface NonClass {
31+
a: number;
32+
"my-dict": Record<string, number>;
33+
}
34+
35+
type IndirectC = C<number>

0 commit comments

Comments
 (0)