Skip to content

Commit 5b4a888

Browse files
authored
Merge pull request #14636 from github/tausbn/python-add-support-for-python-3.12-type-syntax
Python: Add support for Python 3.12 type syntax
2 parents ab62606 + 10b72a0 commit 5b4a888

File tree

15 files changed

+5182
-4
lines changed

15 files changed

+5182
-4
lines changed

python/downgrades/728c6d65e61d808ae276013ebc15abc3a97aaef1/old.dbscheme

Lines changed: 1233 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// We must wrap the DB types, as these cannot appear in argument lists
2+
class Stmt_ extends @py_stmt {
3+
string toString() { result = "Stmt" }
4+
}
5+
6+
class StmtList_ extends @py_stmt_list {
7+
string toString() { result = "StmtList" }
8+
}
9+
10+
query predicate py_stmts_without_typealias(Stmt_ id, int kind, StmtList_ parent, int idx) {
11+
py_stmts(id, kind, parent, idx) and
12+
// From the dbscheme:
13+
//
14+
// case @py_stmt.kind of
15+
// ...
16+
// | 27 = @py_TypeAlias;
17+
kind != 27
18+
}

0 commit comments

Comments
 (0)